Global variable of type "List" is this possible in BPEL?

Map filterMap = new HashMap();
filterMap.put(WorklistService.FILTER_TYPE_TASK_FILTER,
WorklistService.TASK_FILTER_DEFAULT);
filterMap.put(WorklistService.FILTER_TYPE_STATUS_FILTER,
WorklistService.STATUS_FILTER_ASSIGNED);
WorklistService wlSvc = WorklistService.getWorklistService();
IWorklistContext ctx = wlSvc.authenticateUser("jcooper", "");
List tasks = wlSvc.getWorklistTasks(ctx,
filterMap,
WorklistService.SORT_FIELD_TASK_TITLE,
WorklistService.SORT_ORDER_ASCENDING);
My question is, is it possible to have the variable tasks which is of type "List" to be accessable in another Java Embedding?

What do you pass to the config variable?
Arthur My Blog

Similar Messages

  • More details about Surprising LV global variable of type 2

    I'm using a type 2 global variable because I need a big data array shared by
    two parallel VI, so this data array is manipulated in a subVI non reentrant.
    One input of this subVI is an enum called method which represents what
    action to do on the data of the subVI and this input is directly wired to a
    condition structure.
    The big data array is contained by an indicator in the front panel of this
    subVI because
    this big data is an output of the load method so this indicator is wired as
    output connector of the subVI because it is needed when loaded.
    For other method the big data array is read to extract part of needed data,
    so in the subVI diagramm, a readable local variable issued from the big data
    arra
    y terminal is used . But how big data array is not needed for these
    methods, big data array terminal is not rewritten as output in these
    condition diagramms because the big data array is theoretically unchanged
    and I want to avoid to duplicate my big data array to save time and memory.
    The result is surprising because:
    After the load method, the big data array output is right.
    Then, the input of the second subVI call as a get method is correct.
    Readable local variable of the big data array sends right data as input of
    the condition associated with this method, in the subVI.
    Then, the input of the third subVI call as a get method is wrong. Readable
    local variable of the big data array sends wrong data as input of the
    condition associated with this method, in the subVI.
    So, I suppose I have to wire my big array as output of the condition for
    every method call, what lose
    a lot of time and memory.
    Have you a better idea, please?

    Brice Chatelan wrote in message <[email protected]>...
    >I'm using a type 2 global variable because I need a big data array shared
    by
    >two parallel VI, so this data array is manipulated in a subVI non
    reentrant.
    >...
    >For other method the big data array is read to extract part of needed data,
    >so in the subVI diagramm, a readable local variable issued from the big
    data
    >array terminal is used . But how big data array is not needed for these
    >methods, big data array terminal is not rewritten as output in these
    >condition diagramms because the big data array is theoretically unchanged
    >and I want to avoid to duplicate my big data array to save time and memory.
    >The result is surprising because:
    >After the load method, the big data array output is right.
    >Then, the input of the second subVI call as a get method is correct.
    >Readable local variable of the big data array sends right data as input of
    >the condition associated with this method, in the subVI.
    >Then, the input of the third subVI call as a get method is wrong. Readable
    >local variable of the big data array sends wrong data as input of the
    >condition associated with this method, in the subVI.
    >
    >So, I suppose I have to wire my big array as output of the condition for
    >every method call, what lose
    >a lot of time and memory.
    >
    >Have you a better idea, please?
    >
    Brice,
    Are you using a while loop with uninitialized shift-registers in your LV2
    style global. This technique is what defines a "LV2 style global" also
    called functional globals because you can embed actual functionality into
    the VI (for example in your case to extract certain data from an array and
    operate on it) as opposed to the read/write only usage of the built in
    globals.
    From what I can gather, it doesn't sound like you are using the while
    loop/shift-register method. You shouldn't need to use a local variable at
    all. The data is passed around using the shift-register and it passes
    through all of you conditions (load, get, etc.) and no you won't lose time
    and memory (or money) doing it this way, certainly not any more than you
    would using a local variable. Try it and see if it doesn't fix your
    problems and work better than what you are doing now.
    If you are using a while loop and shift-registers, then I'm not
    understanding clearly what you are doing. Perhaps if you emailed me your VI
    (privately of course) to take a look at.
    Good Luck!
    Scott Menjoulet

  • Surprising LV global variable of type 2

    I'm using a type 2 global variable because I need a big data array shared by
    two parallel VI.
    The big data array is contained by an indicator in the front panel because
    this big data is an output of the load method.
    This big data array is an input of other methods so as in the LV example, a
    local variable of the big data array is used as input and I have not wired
    the big data array indicator as ouput for these methods in order to avoid to
    duplicate my big data array.
    The result is surprising because:
    After the load method, the outputs are right.
    The inputs of an other method is correct (local variable) but the data array
    changed although I don't changed it .
    So the inputs of the second other method are wrong.
    So, I
    suppose I have to rewrite my big array at every method call, what lose
    a lot of time and memory.
    Have you a better idea, please?

    > I'm using a type 2 global variable because I need a big data array shared by
    > two parallel VI.
    > The big data array is contained by an indicator in the front panel because
    > this big data is an output of the load method.
    > This big data array is an input of other methods so as in the LV example, a
    > local variable of the big data array is used as input and I have not wired
    > the big data array indicator as ouput for these methods in order to avoid to
    > duplicate my big data array.
    > The result is surprising because:
    > After the load method, the outputs are right.
    > The inputs of an other method is correct (local variable) but the data array
    > changed although I don't changed it .
    > So the inputs of the second other method are wrong.
    >
    > So, I suppose I have to rewri
    te my big array at every method call, what lose
    > a lot of time and memory.
    Its not exactly clear why you are doing this. A global can't be written
    to by
    a local, and neither of your options have mentioned a wire going from function
    one to function two. I'd suggest that you may not need to use a global
    at all,
    just a wire.
    If you are using a LV2 style global, then you make a call to a subVI
    that returns
    the needed data on a wire and passes it to the rest of the diagram. This method
    doesn't save anything if you are always accessing the entire array.
    Greg McKaskle

  • Knowing the Object type? Is this possible?

    Can we know the type of the object created ? Is there any method
    that lets you know the type of object?
    For example:
    class Superclass{
    class Subclass extends Superclass{
    class TestInheritance{
    public static void main(String[] args){
    Subclass subClass = new Subclass();
    }Now,Subclass is of type Subclass and also of type Superclass.
    Right?
    IS there any way or method I can find out the type of Subclass? ie
    Subclass is of type 'Subclass' and 'Superclass'.

    These might help:
    instanceof operator.
    also
    Object.getClass().className()
    http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Class.html

  • Advantage of global variable usage

    Hi,
    I have a forms 6i form that calls another form. I need to pass parameters from the calling form to the called form. There are two options : GLOBAL VARIABLES or PARAMETER LIST. Please advise which is the best option? This is very urgent and i would appreciate all prompt replies.

    Francois Degrelle wrote:
    Hello,
    You would find the answer in the documentation.
    GLOBAL is read/write and always Varchar and limited to 256 characters.
    Parameter is read only in the called form, but can by type of Varchar, number or date
    Global is more interesting when you have to share a value between 2 forms, and get the updated value in the calling form.
    FrancoisDitto

  • Global variable in a Table

    Hi!
    Can i use any column in a table as a global variable? Is it at all possible in Any version of Oracle? I know that if we use package - we can create a global a variable there. If u had any knowledge pls reply.
    Satyaki.

    Hi Satyaki,
    Try to understand the difference between a variable and coumn of the table.
    What exactly you need a global variable for the application or own Datatype for a table?
    If you requirement is variable then use Package without body or type object. But if your requirement is your own datatype use TYPE in the table.
    Thanx.. Ratan

  • Selection screen values in global variable user exit

    Hi all,
    I made a project report global variable of type 3 (User Exit) and I develop the related code in enhancement KKDR0001 component EXIT_SAPLKYP1_003. In this code I need the value of project definition that user entered on selection screen.
    Does anybody know how can I get this data?
    Thanks!

    Hi,
    You can do the following for getting project in Earlier screen
    Data: l_string(20) type c
    Field-symbols: <fs> type any.
    l_string = '(Screen)variable name'.
    assign l_string to <FS>.
    Just try above...

  • Incorrect value for global variable

    Hi,
    I am facing an issue in a query. In the query there is a Global variable 'Volume type'. In the default value tab of the variable it is given Default value as Litre. In the table RSZGLOBV also i have checked the global variable and there also the 'Internal Characterestic value' is shown as Litre itself. But when I execute the query, it is giving an out put like:
    For the keyfigure Volume,
    If the keyfigure is having some non zero value, it is showing Litre.
    If the kayfigure value is zero, it is showing KG.(which is wrong). For zero also it should display 0.00KG.
    Please help.

    Hi Nitin,
    changing the default within the variable would impact all queries.
    Only if it was an exit variable, you could define within the exit to do different things depending on the query.
    I would suggest the user uses personalization - but this impacts all queries where this variable is used for this user.
    regards
    Cornelia

  • SEM-BPS: Variables of type hierarchy node user exit

    Hi,
    I read the "How to.." document "Variables of Type Exit".
    This document has example for variable type caracteristic.
    I need to use this kind of solution for global variables:
    I have the same variables in several planning areas. I have defined one ‘leading’ area containing the variable that should automatically set/adjust the corresponding variables in the other planning areas.
    I've created a SEM variable of type hierarchy node and with the replacement type user exit. There is a standard function module API_SEMBPS_VARIABLE_GETDETAIL which has to provide the selected hierarchy node in leading area to other areas.
    The function works ideally in test mode, but it doesn't work as the SEM user exit.
    Does anyone have experience in this problem?
    Thanks

    Your function module shall follow the expected interface (required for exit type). Function API_SEMBPS_VARIABLE_GETDETAIL is not for such usage.
    To see an example FM that is fit for a 'user exit' processing for hierarchy node, have a look at FM UPF_VARIABLE_USER_EXIT_HIER. There is inline documentation in the source code that shall help you create your own FM if required.
    cheers,

  • Global variables for circular buffer

    Hallo!
    I have another question:
    I need to have a variable circular buffer size. So I would like to define the circular buffer size by a global varable.
    Is that possible? I tried to use the global variable like {VAR_01} to insert in the desired field for circular buffer size, but dasylab only puts a zero in the field.
    Thank you and have a nice day.
    Hilby
    Solved!
    Go to Solution.

    Unfortunately it is not possible to have a variable-sized buffer. Right-click into the corresponding textfield: the context menu does not show an entry to choose the global variable from a list.
    M.Sc. Holger Wons | measX GmbH&Co. KG, Mönchengladbach, Germany | DASYLab, DIAdem, LabView --- Support, Projects, Training | Platinum National Instrument Alliance Partner | www.measx.com

  • Global variable problem

    hi all
    if i use this SELECT 'C' || mycodes.NEXTVAL INTO :ins2.code FROM DUAL; on pre-insert trigger so the global variable is not working for this field :ins2.code..
    but if i use on key-commit then working but i want to use on pre-insert
    here is my key-commit trigger codes
    begin
    SELECT 'C' || mycodes.NEXTVAL INTO :ins2.code FROM DUAL;
    if
    :ins2.name is not null
    then
    :global.name := :ins2.name;
    :global.code := :ins2.code;
    commit_form;
    end if;
    end;
    plz help me out thanks in advance
    sarah
    Edited by: SarahSarahSarah on Sep 7, 2009 6:41 AM

    Hi Sarah!
    The pre-insert trigger fires just when you call the commit_form build-in.
    So :ins2.code and :ins2.name are still null when you try to assign the values to the globals.
    Put the code inside the pre-insert trigger direct after the sequence-select.
    if
      :ins2.name is not null
    then
      :global.name := :ins2.name;
      :global.code := :ins2.code;
    end if;
    end;and the key-commit trigger:
    if
      :ins2.name is not null
    then
    commit_form;
    end if;
    end;or assign the values to the globals after the call to the commit_form build-in:
    if
      :ins2.name is not null
    then
      commit_form;
      :global.name := :ins2.name;
      :global.code := :ins2.code;
    end if;
    end;Regards
    Edited by: Magoo on 07.09.2009 13:47

  • GLOBAL VARIABLES FOR NON-ORACLE DATABASE

    What is the alternative of global variables in Form 5.0 when using non-oracle databases. I know one way is passing parameters, is there any other way? I have few variables which need to be global in my application.
    Thank you
    null

    There is no other way.. you have to use either Global variables or parameter lists to pass values from one form to another form.. With in the form you can always use null canvas item to store and pass values in different program units or triggers..
    have a nice day
    Suresh

  • Global variable corruption

    hi
    im using labview 6.1.
    i have a frame in a sub-vi that that reads 16 bytes from com7 (in my pc) into a global variable using a custom DLL. this variable is then used later to compare some data in another sub-vi.
    this was working fine for a day, then this morning i started it again and ran it. when i got to the point where this "read" happens i got a dr watson exception message. (i am running the application on nt4 in the development environment). after this point the gloabal had rubbish in it whenever i did a read, although it did also hold the basic read data. after a reboot etc it still did it. the fix was to completely remove this global from the application vi and my file globals.vi , create a new one and then use that in the same manner.
    everything was ok for an hour.
    then the same thing happened again.
    any ideas? this is really annoying.

    It sounds like you're DLL is corrupting LabVIEW's memory. This doesn't necessarily mean you're DLL is doing anything wrong. It just means you have to be careful when calling external code in LabVIEW to make sure that it plays nice and doesn't stomp on LabVIEW's internal memory.
    If you expect your DLL to output a 16-character buffer on every call, then you should be passing in a dummy string into the buffer input for your Call Library Function Node of at least 16 characters in length. This will help LabVIEW allocate the data correctly and pass it into the DLL to operate on. The DLL should not resize this buffer, because LabVIEW won't be notified.
    Are you doing anything along these lines?
    Message Edited by Jarrod S. on 03-01-2007 03:06 PM
    Jarrod S.
    National Instruments
    Attachments:
    allocate_string_dll.PNG ‏18 KB

  • Change source path in batch Job in global variable in data services

    Hi Experts,
    my organization has created job in data services 3.2 to cleanse the data reading from excel flat files. the folder path was store in the global variable(I think) and now they have changed the directories hence is it throwing me below error.
    Error, Input file  does not exist please confirm existence and restart job, 16 ) >
    failed, due to error <50316>: <>>> Error, Input file  does not exist please confirm existence and restart job>. I want to update the folder path. I am sure it would be easy but I am very new to BODS.
    (12.2) 07-15-14 16:10:08 (14232:12656)  PRINTFN: > 'JOB DEBUG' : '>>> Sleeping for 35.000000 seconds...  '
    (12.2) 07-15-14 16:10:43 (14232:12656)  PRINTFN: > 'JOB DEBUG' : '>>> Waking up......  '
    (12.2) 07-15-14 16:10:43 (14232:12656)  PRINTFN: > 'JOB DEBUG' : 'Starting the timer loop number 6...'
    (12.2) 07-15-14 16:10:43 (14232:12656) WORKFLOW: Work flow <WF_Metadata_Files> is started.
    (12.2) 07-15-14 16:10:43 (14232:12656)  PRINTFN: > 'JOB DEBUG' : '>>> $G_FILENAME_IN : ALL_Metadata_SALES.xls...'
    (12.2) 07-15-14 16:10:43 (14232:12656)  PRINTFN: > 'JOB DEBUG' : '>>> looking for input file name
                                                     \\infra\finance\production\sales\Metadata\ALL_Metadata_SALES.xls'
    (12.2) 07-15-14 16:11:08 (14232:12656)  PRINTFN: > 'JOB DEBUG' : '>>>  Input file Name is '
    (12.2) 07-15-14 16:11:08 (14232:12656)  PRINTFN: > 'JOB ERROR' : '>>> Error, Input file  does not exist please confirm existence and restart job'
    I want to update the folder path\\infra\finance\production\sales\Metadata\ALL_Metadata_SALES.xls to \\Home\BIData\finance\production\sales\Metadata\ALL_Metadata_SALES.xls
    when i investigated WF_Metadata_files i saw there is a global called INPUT_DIR i assume I have to change the path there. I tried to find old directory in the batch job but i cant find it and even When i give value to global variable it is still pointing to old path.
    Can anybody please help me.
    Thanks
    Tim

    Hi Tim,
    If having specified the value in the global variable it is still pointing to the old path there can be a couple of scenarios applicable
    1. There is a different global varaiable being used for the file path
    2. The filepath is hardcoded in the file-format or Excel file definition despite the declaration of the global variable.
    Are you getting this error when running a dataflow within this workflow or in a script? It will be better to run the workflow in debug mode and look through the stages to find out where exactly in the workflow it fails.
    kind regards
    Raghu

  • Listing global variables

    Is there a way to list all global variables in a multi-form app without actually knowing the names of the variables? We have some FMX files without source code, and I would like to create a form that would just list these globals. Possible or not? Or put another way, is there a way to grab these globals from the memory area?

    The only idea that comes to my mind : start the debugger from Forms Builder with your starting module, and when reaching a breakpoint (which has to be set before) you can see in the middle of the debugger a window (the navigator pane) a navigator tree. Click on Global Variables and you can see all Globals and their values which do exist the time your program reaches the breakpoint.
    Hope this may help you
    Kai

Maybe you are looking for

  • Verizon wireless shady business practices

    TIERED DATA AS A CHOICE FOR NETWORK OPTIMIZATION-what a jokethe only thing that optimizes is their bank account.very flawed theory,if every one is connected trying youse their monthly dats allotments the way the network is currently designed performa

  • Sybase ASE 15.7.103 ODBC Driver invalid descriptor index

    Hey guys, after migration from oracle nuc to sybase ase 15.7.101 unicode and implementation of sapnote 1558958 (dbacockpit collection for NW 702) there were everything which was in dbacockpit displayed ok. After upgrade to patch 103 theres a problem

  • .CSV FILE PROGRAMMING

    I'm using write to spreadsheet file for dumping the data of the test. I have 5-6 different variables each holding different kind of results (basically voltage values, time stamp). I want to write single variable results in one page and second variabl

  • ORA-12518: TNS:listener could not hand off

    Hi we are having oracle11i (11.5.10.2) on windows 2000 Server (service pack 4) database version 10.2.0.3. we are getting frequently(Once In a week) Error 'ORA-12518: TNS:listener could not hand off' .What could be the reason for that? Thanks With Reg

  • Interactive list - field selection

    Hi, I am writen code for interactive list. But I am facing a problem is wherever i click on the row, it is showing the next list. But i dont want it..   when i click on the sales order no. it has to show sales order details in the secondary list.. an