How to set List of String as variable value in BPEL
I am using java embedding to invoke a method which returns a list of strings. I need to set these values in a variable in BPEL to be used later. I am getting following error while setting the value.
<May 2, 2012 5:18:20 PM IST> <Error> <oracle.soa.bpel.engine.dispatch> <BEA-000000> <failed to handle message
com.oracle.bpel.client.BPELFault: faultName: {{http://schemas.xmlsoap.org/ws/2003/03/business-process/}mismatchedAssignmentFailure}
messageType: {{http://schemas.oracle.com/bpel/extension}RuntimeFaultMessage}
parts: {{
summary=<summary>Mismatch Assign.
cannot set a nonelement value to an element-based variable.
An attempt to assign a nonelement value to an element-based variable failed.
Verify the BPEL source for invalid assign activities.
</summary>}
Following is the java code
List<String> providers = Registory.getProviders("1");
setVariableData("providerList", providers);
I have defined a xml element in the wsdl defintion:
<xsd:element name="providerList">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="providerId" type="xs:string" maxOccurs="unbounded" minOccurs="0" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
providerList variable is of type "providerList".
What else do I need to do to convert the List to the xml elements ?
Well I believe this is not officially mentioned anywhere, but this is the limitations for the java embedding activity. You can assign value to a single variable or to the single part element of variable only. I suggest you go with a java web service. you can check more details on java embedding activity @ http://docs.oracle.com/cd/E21764_01/integration.1111/e10224/bp_java.htm
void setVariableData(String name, Object value)
void setVariableData(String name, String part, Object value)
void setVariableData(String name, String part, String query, Object value)
Similar Messages
-
How to create dynamic connection string with variables using ssis.
Hello,
Can anyone let me know on how to create dynamic connection string with variables using ssis?
Any help would be appreciated.Hi vinay9738,
According to your description, you want to connect multiple database from multiple servers using dynamic connection.
If in this case, we can create a Table in our local database (whatever DB we want) and load all the connection strings. We can use Execute SQL Task to query all the connection strings and store the result-set in a variable of object type in SSIS package.
Then use ForEach Loop container to shred the content of the object variable and iterate through each of the connection strings. And then Place an Execute SQL task inside ForEach Loop container with the SQL statements we have to run in all the DB instances.
For more details, please refer to the following blog:
http://sql-developers.blogspot.kr/2010/07/dynamic-database-connection-using-ssis.html
If there are any other questions, please feel free to let me know.
Regards,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
How to Set and Use a global variable within a session?
Dear All,
I'm new to jsp, and would like to ask how to set and use a global variable within a session?
Thanks in advance.
Regards,
CecilWith session.setAttribute("name",object) you can store a Attribute in the session object.
with session.getAttribute("name") you can get it.
That's it.
Regards,
Geri -
How to set current year,month as default value in combo box
hi, im newbie of xcelsius user
i realize that hv a issue that display combo box base on year & month
let said
<b><u>step 1</u></b>
I create excel data like this
<b><u>year___ </u> </b> | <u><b>month_ </b></u> | <u><b>Product</b></u> | <u><b>revenue</b></u>
02-04-09 | 02-04-09 | a | $4,154
03-04-09 | 03-04-09 | b | $6,813
04-05-09 | 04-05-09 | a | $9,875
05-06-09 | 05-06-09 | b | $6,813
06-04-10 | 06-04-10 | a | $6,813
07-04-10 | 07-04-10 | b | $9,875
08-06-10 | 08-06-10 | a | $9,875
22-06-10 | 22-06-10 | b | $6,813
<u><b>Step2</b></u>
Then i go format cell to format/custom date to year & month
Eg1: Year u2013> 02-04-09 convert to u2018YYYYu2019 (2009)
Eg2: Month u2013> 02-04-09 convert to u2018mmmmu2019 (April)
So output like this
<u><b>year</b></u> | <u><b>month</b></u> | <u><b>Product</b></u> | <u><b>revenue </b></u>
2009 | April | a | $4,154
2009 | April | b | $6,813
2009 | May | a | $9,875
2009 | June | b | $6,813
2010 | April | a | $6,813
2010 | April | b | $9,875
2010 | June | a | $9,875
2010 | June | b | $6,813
But the problem is when i insert to combo box,use u201Cfilter Row u201D, i excpectation will display only 2009,2010
But Actual display the Year in combo box is duplicated :'(
so any solution ? and then only how to set current year & month as default value :'(
thanks,
regards
s1
Edited by: Leong Pui Kee on Feb 25, 2011 5:25 AM
Edited by: Leong Pui Kee on Feb 25, 2011 5:36 AMhi,
your created data
step 1
I create excel data like this
year___ | month_ | Product | revenue
02-04-09 | 02-04-09 | a | $4,154
03-04-09 | 03-04-09 | b | $6,813
04-05-09 | 04-05-09 | a | $9,875
05-06-09 | 05-06-09 | b | $6,813
06-04-10 | 06-04-10 | a | $6,813
07-04-10 | 07-04-10 | b | $9,875
08-06-10 | 08-06-10 | a | $9,875
22-06-10 | 22-06-10 | b | $6,813
In this, year and month both are same data, make the diffent data like year 2009, 2010 And month Jan, Feb, March, ...Etc
and also one more check you formulas on month and year, select correct source data, destination data for compoonent..
OR
from above, to create a date column and convert date-->year, date--> month and Explore it.
All the best,
Praveen -
How to select different Querys based on Variable Value
Hi guys i need to know how to select different Querys, based on variable values selected by the user, i try to do it using a Web Template but i don´t know how to program a Dynamic Query.....
I hope sombody could help me with this
Message was edited by: Oscar DiazHi Diaz,
Can you explain the exact scenario which you are looking for!!!
regards
Happy Tony -
How to set List and Tree Binding Value manually from backing bean?
Dear All,
I somehow found this code to work so that I could set a value on my bindings from a managed bean.
public void setBindingExpressionValue(String expression, Object value)
FacesContext facesContext = getFacesContext();
Application app = facesContext.getApplication();
ExpressionFactory elFactory = app.getExpressionFactory();
ELContext elContext = facesContext.getELContext();
ValueExpression valueExp =
elFactory.createValueExpression(elContext, expression, Object.class);
valueExp.setValue(elContext, value);
public class MyBean{
private String employeeId;
public void inAmethod(){
setBindingExpressionValue("#{bindings.employeeId.inputValue}",
getEmployeeId());
}Now, I am thinking. What if I have a List or Tree Binding in my managed bean then how or what should I send
to the expression value. Is it a List or Map?
The first one was easy as it is just a string but how about when dealing with collection?
JDEV 11g PS4
ThanksHi,
a tree binding does not set the value of the tree but determines the selected node. The binding itself represents the collection model that shows the hierarchical tree structure. So your question does not apply to a tree
Frank -
How to set report output to session variable
Hi,
Is there any way to set report output to session variable . If my report returns 1 row and 1 column.
I have a dashboard prompt where i am selecting Name , but i want to find out the ID of that name .
that ID i want to pass to a column Fx , to achieve this i created a intermediate report and i got the ID. Now my problem is how do i set this ID in session variable .
Please help if anyone knows...Did you read this:
how to set session / presentation variable in repository variable
Dashboard prompt on Month Name but report filter on month ID:
Re: Dashboard prompt on Month Name but report filter on month ID needed
If you have dashboard prompt (name) then you may have only one report that is filtered by name but show id or not show id but use id in the function. Or two reports like in the solution in the second link above and the second report has id in the function and filter by id from the first report. You don't need to set this ID in session variable for this example.
Please close your previous threads if they are answered.
Regards
Goran
http://108obiee.blogspot.com -
How to set global resoure string
Hello!
I successfully set a resource string, i.e. af_calendar.TIP_NEXT with the following implementation:
public class MyMessageBundle extends ListResourceBundle {
private Object[][] CONTENTS = {
{"AFAutoSuggestEmptyText", "Hello there!"},
{"af_calendar.TIP_NEXT", "TEST"}
protected Object[][] getContents() {
return CONTENTS;
}But this doesn't work for global resource strings like AFAutoSuggestEmptyText Any suggestions?
Thanks
christophHi Praveen G,
this blog was one of the sources I already found.
I was searching for the "official" way to set the default-workbook - without manipulating the tables programmaticaly (and possibly inconsistant).
Best regards,
Marco -
How to Set JMS property and Read JMS property in BPEL using JMS adapter
Does any one know how to set or read more than one JMS property in BPEL using JMS adapter. My queue server is Oracle JMS server.
Any help and sample is well appreciatedHi Van
I have noted that only the attribute "type" is missing. It seems that when you create a "string" property, the attribute "type" is droped from the XML. If you use another type (as "integer" or "double") it stays there.
If you try to read your properties, except for the "type" attribute, you should be successful, as I am. If you need, please tell me your email, I can send you my code.
Source Code:
in ASSIGN activity (process which SENDS the JMS message):
<assign name="TESTES">
<copy>
<from expression="'string'"/>
<to variable="HeaderJms" part="outboundHeader"
query="/ns5:JMSOutboundHeadersAndProperties/ns5:JMSOutboundProperties/ns5:Property[1]/@type"/>
</copy>
<copy>
<from expression="'name'"/>
<to variable="HeaderJms" part="outboundHeader"
query="/ns5:JMSOutboundHeadersAndProperties/ns5:JMSOutboundProperties/ns5:Property[1]/@name"/>
</copy>
<copy>
<from expression="'value1'"/>
<to variable="HeaderJms" part="outboundHeader"
query="/ns5:JMSOutboundHeadersAndProperties/ns5:JMSOutboundProperties/ns5:Property[1]/@value"/>
</copy>
<bpelx:append>
<bpelx:from>
<Property name="" type="" value=""
xmlns="http://xmlns.oracle.com/pcbpel/adapter/jms/"/>
</bpelx:from>
<bpelx:to variable="HeaderJms" part="outboundHeader"
query="/ns5:JMSOutboundHeadersAndProperties/ns5:JMSOutboundProperties"/>
</bpelx:append>
<copy>
<from expression="'string'"/>
<to variable="HeaderJms" part="outboundHeader"
query="/ns5:JMSOutboundHeadersAndProperties/ns5:JMSOutboundProperties/ns5:Property[2]/@type"/>
</copy>
<copy>
<from expression="'name2'"/>
<to variable="HeaderJms" part="outboundHeader"
query="/ns5:JMSOutboundHeadersAndProperties/ns5:JMSOutboundProperties/ns5:Property[2]/@name"/>
</copy>
<copy>
<from expression="'value2'"/>
<to variable="HeaderJms" part="outboundHeader"
query="/ns5:JMSOutboundHeadersAndProperties/ns5:JMSOutboundProperties/ns5:Property[2]/@value"/>
</copy>
</assign>
in ASSIGN activity (process which READS the JMS message)
<assign name="Assign_1">
<copy>
<from variable="Variable_1" part="inboundHeader"
query="/ns3:JMSInboundHeadersAndProperties/ns3:JMSInboundProperties/ns3:Property[10]/@name"/>
<to variable="temp"/>
</copy>
<copy>
<from variable="Variable_1" part="inboundHeader"
query="/ns3:JMSInboundHeadersAndProperties/ns3:JMSInboundProperties/ns3:Property[10]/@value"/>
<to variable="temp"/>
</copy>
<copy>
<from variable="Variable_1" part="inboundHeader"
query="/ns3:JMSInboundHeadersAndProperties/ns3:JMSInboundProperties/ns3:Property[12]/@name"/>
<to variable="temp"/>
</copy>
<copy>
<from variable="Variable_1" part="inboundHeader"
query="/ns3:JMSInboundHeadersAndProperties/ns3:JMSInboundProperties/ns3:Property[12]/@value"/>
<to variable="temp"/>
</copy>
</assign>
Note that I do not try to read the "type" attribute, otherwise it will fail.
Here is the JMS Header Message received:
<inboundHeader>
<JMSInboundHeadersAndProperties xmlns="http://xmlns.oracle.com/pcbpel/adapter/jms/">
<JMSInboundHeaders>
<JMSCorrelationID>
bpel://localhost/pi_lms-c001e/BpelPiAtualizacaoC001E~1.0/3200025-BpInv0-BpSeq1.6-2
</JMSCorrelationID>
<JMSDeliveryMode>2</JMSDeliveryMode>
<JMSExpiration>0</JMSExpiration>
<JMSMessageID>ID:467DFA1FA1ED459EBF37F51F596C3F12</JMSMessageID>
<JMSPriority>4</JMSPriority>
<JMSRedelivered>false</JMSRedelivered>
<JMSType>com.mercurio.lms.integration.c001eip.c001EIntegrationPoint</JMSType>
<JMSTimestamp>1201552046253</JMSTimestamp>
</JMSInboundHeaders>
- <JMSInboundProperties>
<Property name="JMSXDeliveryCount" type="integer" value="1"/>
<Property name="JMSXRecvTimestamp" type="long" value="1201552046698"/>
<Property name="JMSXUserID" value="lms_dev_int_v1_user"/>
<Property name="JMS_OracleDeliveryMode" value="2"/>
<Property name="JMS_OracleTimestamp" type="long" value="1201552046253"/>
<Property name="JMS_OracleDelay" type="long" value="0"/>
<Property name="JMSXState" type="integer" value="0"/>
<Property name="IAS_VERSION" value="10.1.3"/>
<Property name="JMS_OracleDeliveryMode" value="2"/>
<Property name="name" value="value1"/> ("type" attribute was droped!!!)
<Property name="JMS_OracleTimestamp" type="long" value="1201552046253"/>
<Property name="name2" value="value2"/> ("type" attribute was droped!!!)
</JMSInboundProperties>
</JMSInboundHeadersAndProperties>
</inboundHeader>
Regards
Marcelo -
Custom control for list of string,num​eric values
Hi,
I want to create a control in labView 6.1 that presents the user with a list
of string values on the front panel. The actual strings are material names
(e.g. Si, Al). With each string value would be associated a floating point
value that would then be used on the diagram for some numerical processing.
What I have done is create an array of {string,digital control} clusters,
but it looks kind of clunky on the front panel. Is there a more elegant
solution?
Thanks,
-John P
God is a comedian playing to an audience too afraid to laugh.
- VoltaireSome ideas that I use when making this kind of button:
Make an array of clusters of {string, numeric, boolean} in which:
The numeric is hidden (right click menu/advanced/hide control) (skip
this if you want the numeric to display
and
The boolean is colored TRANSPARENT and overlaid on the string. So it
it seems to the user that he clicks on the string but in fact clicks
on an invisible boolean.
Another idea is to combine the strings and booleans into one set of
buttons by making a cluster of identical booleans arranged so that
they look like an array and setting the boolean text on each button
to the desired string.
These ideas imply writing some radio button logic to generate an
index to select the desired numeric element. This is more work than it
m
ight seem
Easiest is to use events and convert the mouse coordinates into an
array index. I just made one of these and I have the code handy if
you like.
Adam
On Wed, 18 Jun 2003 19:06:45 -0500, John P wrote:
>Hi,
>
>I want to create a control in labView 6.1 that presents the user with a list
>of string ... -
How to create an array containing shared variable values
Hi
I am trying to programmatically create an array containing shared variable values and their names. I can get the variable names by supplying the process name to the get shared variable list function. How do I then read the value of all the shared variable items returned?
I have used a data socket open to open a connection to all variables when my program starts. I then use datasocket read on the opened connections to write to an array. This works fine until I try to write to one of the variables using a shared variable node. The variables writes can take from 4secs to 2 mins. When I remove the shared variable node again all is fine. Also when I stop using the data sockets, all is fine.
Is there a conflict between shared variable nodes and data socket writes to the shared variables?
Can anyone help? I cannot easily post example code because I am reading the variables from a Wago PFC (PLC) using OPC.Hi
Sorry I forgot to mention the LabVIEW version, its 8.20. I have tried saving the shared variable node as a sub VI and it makes no difference.
Attached is a stripped down version of the software. You will not be able to connect to the IO server because it requires some Wago hardware and software. You may spot something I have done wrong with the I/O servers, variables or sub VI's.
The main program that runs is called 'HMI Engine' in the 'Framework' folder. There may be some other things in the project that aren't used in this example. I have removed all but the variable connection part of the code.
I hope someone can help!?
Thanks
Mark.
Attachments:
HMI Test.zip 144 KB -
How to set Oracle Data Integrator Timeout paramter value as unlimited
Hi
Can any one help me how to set Oracle Data Integrator Timeout (ODI menu>User Paramter>Oracle Data Integrator Timeout > paramter value as unlimited.
By default it is 30 and i want to change it as unlimited.
I am connecting linux box through windows using citrix and opened ODI and start the scenario execution (my scenario execution in loop and it will execute continuesly) after execution starts I an logout from citrix (I am not closing ODI) and after some time like 50 min my odi execution is stoped due to timeout.
my ODI execution should continue in my absence that to unlimited.
Please help me it is urgent
Regards,
PhanikanthThanks Bhabani
Is it work for unlimited in linux box because I have given operator dispplay limit(0=no limit) as 1000000 and I am unable to see the execution session details on Operator>session list
later i have changed to 10000 and click on ok and just refreshed and it is working fine
If I give mensioned below it will not impact on ODI ?
windows it is working but I have doubt on linux version
Please help me
Regards,
Phanikanth -
How to put whitespace in launchd.conf variable values
Working on a Mavericks, I'm trying to set global environment variable available in the terminal, spotlight and any GUI application.
To do so, I want to use launchd.conf to set my environment variables. I have been able to set some variables, until I wanted to put a whitespace in the variable values. Here is the content of my launchd.conf:
setenv MYVAR2 "my var"
setenv MYVAR3 "myvar"
setenv MYVAR4 "my\ var"
setenv MYVAR5 my var
setenv MYVAR6 myvar
setenv MYVAR7 my\ var
Then, here i what I tried in my terminal:
>grep -E "^setenv" /etc/launchd.conf | xargs -t -L 1 launchctl
launchctl setenv MYVAR2 my var
launchctl setenv MYVAR3 myvar
launchctl setenv MYVAR4 my\ var
launchctl setenv MYVAR5 my var
launchctl usage: setenv <key> <value>
launchctl setenv MYVAR6 myvar
launchctl setenv MYVAR7 my var
>env | grep MYVAR
MYVAR_IN_LAUNCHD_NOSPACE6=myvar
MYVAR_IN_LAUNCHD_NOSPACE3="myvar"
As you can see, all the variable containing a whitespace (even escaped with a backslash) are purely ignored. And I need to have several variables with whitespace inside.
Instead of the "grep" command, I rebooted my mac, but the result is the same.
Is there any workaround or solution for this issue ?
RémiSo you run this command in a shell:
launchctl setenv MYVAR2 "my var"
Then this:
launchctl getenv MYVAR2
and you get nothing? You relaunch Terminal and run
echo $MYVAR2
and get nothing? -
How to put the column name and variable value in the alert message.
Dear,
how can i put the column name and variable value in the alert message text. i want to display an alert which tell the user about the empty textboxes. that these textboxes must be filled.
Regards:
Muhammad Nadeem
CHIMERA PVT. LTD.
LAHORE
[email protected]Hello,
The name of the item that fires the current trigger is stored in the :SYSTEM.TRIGGER_ITEM system variable.
The value contained in this item can be retrived with the Name_In() built-in
value := Name_In( 'SYSTEM.TRIGGER_ITEM') ;
LC$Msg := 'The item ' || :SYSTEM.TRIGGER_ITEM || ' must be entered' ;
Set_Alert_Property('my_alert_box', ALERT_MESSAGE_TEXT, LC$Msg ) ;
Ok := Show_Alert( 'my_alert_box' ) ;
...Francois -
How to set system date as a default value in UIX/XML page?
Example: We set default values using following statements:
<set property="inputValue" target="${bindings.PoNumber}" value="${'1234'}"/>
<set property="inputValue" target="${bindings.UserName}" value="${param.MyParam1}"/>
In JDeveloper Help, we cannot find a way to set a Date attribute's default value to today's (system) date. Any suggestions?
Also, does anyone have a reccomendation on a good book for uix/xml?
Thanks, Ali.bump
Maybe you are looking for
-
Creation of Service Notification No for SO.
Hi everyone, I am working on the User Exit for the first time. Kindly help me out with the following requirement. When a sales order is saved, create a service notification and link to the sales order header. To fulfill this requirement we need to us
-
I am trying to send an email to a group which I have created in my contacts. I would like to hide the list of email addresses but cannot see how to do this. Can anyone help please?
-
How to find my specific user exit
hi friends, in the transaction vl06O , we have different screens under different tabs, in the screen under shipment tab, there are two fields, incoterm productcode i should change the values appearing in these fileds only for specific data, the data
-
Have backup disk, but Time Machine is not recognizing it...
I have tried 3 different external hard drives, all of which have come up in Finder and I am able to explore them, but when I ask to set up Time Machine, it has no options of any backup disks for me to select? Help! Right now I have Western Digital 50
-
Accessing dynamically configured filename inside adapter module code.
Hi, I am having a requirement where i have to access the filename configured using Dynamic configuration inside my receiver file adapter MODULE code. I am having PI7.1. For accessing the DC filename i have inserted this piece of code inside my adapt