Transfer value from global automatic activity in Aqualogic BPM Suite

Hi, I am new to Aqualogic BMP suite and stuck with the following problem :
In aqualogic bpm suite, if we are setting some values to some variables in a global automatic activity in a process how to get those values back in some other activities (say an Interactive activity) in the same process or how to assign the values to some instance variables in the Begin activity ??
We have a scenario where we are creating some process instances from the Global Automatic activity using the following :
args["name"] = abc
create ProcessInstance using parameters = args
Now how to get the value "abc" and assign this value to an instance variable in the Begin activity(/access the value "abc" in an interactive activity)within the same process.
Thanks,
Suman.

Hi,
Let's say you have an Argument Set defined in your Begin activity called BeginIn. The arguments in this Argument Set can be "a", "b" and "c" of type String, Int and boolean accordingly.
If you want to use the ProcessInstance.create method, then you would need to have a PBL script like this one:
args[] = [ "a" : "SomeStringLiteral", "b" : 1234, "c" : true ];
ProcessInstance.create(processId : "/MyProcess", arguments : args, argumentsSetName : "BeginIn");
HTH,
eduardoc.

Similar Messages

  • Trigger a Begin event running Global Automatic activity

    Hi
    I have a situation explained as follows:
    The BPM Process flow would be triggered when a message comes into a JMS Queue.
    I have configured the JMS Messaging Service as an external resource and used a Global Automatic Activity as an Automatic JMS Listener to listen on that queue.
    Once the message is received on the queue, I want my actual process flow to be instantiated and activities following the begin activity to be executed.
    In the Studio Reference document, it is mentioned that
    You can trigger a Begin event running Global Automatic activity.
    Can someone tell me the steps to trigger the Begin Event from Global Automatic Activity and create the process instance.
    Thanks

    You have to call this method
    ProcessInstance.create(arguments : args, argumentsSetName : "BeginIn")
    Args is Any[String] where you put you input arguments that you have in your begin activity and BeginIn is the set of arguments you have in the begin activity.
    HTH

  • Create Process via Global Automatic activity

    Hi!
    I´m trying to automatize some process, that can auto-execute one time at a day. For this, i'm thinking of use the global automatic activity, and I 've scheduled to execute (for testing) every minute. But this never happends
    If the global has no bp.Method inside, obviusly, nothing happends. Hence, when i wrote this code:
    logMessage "Se ha iniciado el proceso de consulta de calendario a las:" +'now'
         using severity = INFO
    ProcessInstance.create(processId : "/ConsultarCalendarioCompras", arguments : null, argumentsSetName : "")
    how could i solve this?
    Thanks

    Hi,
    Are you seeing your log INFO statement in the log file every minute? Assuming you are, I think all you're missing is a valid value for the third parameter. Try changing your logic to this:
    ProcessInstance.create(processId : "/ConsultarCalendarioCompras",
         arguments : null, argumentsSetName : "BeginIn")
    . . .Once you get this working, take a look at this thread for information on how to pass in argument variables into the work item instance using the second parameter: Re: How to create Instace of another process from running process.
    Hope this helps,
    Dan

  • Global Automatic Activity - Process to Process

    Hi,
    How can we invoke another process from one process using a Global automatic activity..Is PAPI the only way? How can we use PAPI code inside of a Global Automatic Activity to call another process?v Any examples?
    Edited by: user647659 on Oct 27, 2008 11:02 PM
    Edited by: user647659 on Oct 28, 2008 11:49 AM

    I am not sure what you saying..Did u mean Global Creation ? But that would have a user to invoke the process..I want to invoke it automatically...I got a part of the answer...But it takes all instances..and creates multiple instances..I want to isolate the instances previously been transferred..What I am doing is ..Using a Global Automatic to invoke the other process.Writing a PAPI code to call the other process from this process...and Polling By Interval every 1m..
    Here is a code:-
    ProcessService ps;
    ps.connectTo(url : Fuego.Server.directoryURL, user : (String)BusinessParameter.getValue(name : "USER_NAME"), password : (String)BusinessParameter.getValue(name : "PASSWORD"));
    logMessage("Process Service connected--->" );
    businessProcess = ps.getProcess(process : "StartProcess");
    InstanceFilter instanceFilter;
    instanceFilter.create(processService : ps);
    SearchScope searchScope = new SearchScope(ParticipantScope.ALL,StatusScope.INPROCESS_AND_COMPLETED);
    instanceFilter.searchScope = searchScope;
    result2 = businessProcess.getInstancesByFilter(filter : instanceFilter);
    logMessage("Length ==>" +length(result2));
    length = length(result2);
    logMessage("Length Transferred==>" +length);
    test["name"] = "testing";
    if(length > 0)
         for(int i=0; i < length; i++)
              ProcessInstance.create(arguments : test, argumentsSetName : "BeginIn");
    else
         logMessage("length is-->" + length);
    length = 0;
    Any suggestions on how to isolate the previous obtained instances would be appreciated..
    Thanks,

  • Transfer values from one search help to another

    Is it possible to transfer values from screen of one search help to another. For example if I have the vendor master search help (XK02) and I go to the elementary search help "Vendors by Material" . On this screen I enter some data in the Material number field. Now  when I do an F4 on the material field on this search help I will get the collective search help for Material number. My requirement is to have the material number from the first search help to be carried over to the second search help. Is there any way possible. I am manipulating my custom search helps through the search help exits(fetching data etc).

    Hi Deepak,
    Not very sure, but I think if you write code in search help exit, this may be possible. Use GET PARAMETER... SET .. in the exit to pass the values between search help.
    Regards,
    Atish

  • Working with the BEA AquaLogic BPM Suite

    Dev2Dev has just published an article:
    Working with the BEA AquaLogic BPM Suite
    http://dev2dev.bea.com/pub/a/2006/09/aqualogic-bpm.html
    "Learn how the BEA AquaLogic BPM Suite can integrate business process management with existing infrastructure, including Web services, WebLogic Integration, and the AquaLogic Service Bus."
    Check it out. If you'd like to write for Dev2Dev, please contact me!
    Regards,
    Jon
    Jon Mountjoy - Editor, Dev2Dev - http://dev2dev.bea.com/pub/au/13

    Hi Guys You solved my problem. The working code is:
    TaskInstanceManager taskInstanceManager = createTaskInstanceManager();
    DataObject taskOutput = taskDetail.getOutputDataObject();
    DataObject output = taskOutput.createDataObject(0);
    output.setBoolean("Approved",getApprove());
    taskOutput.set(0, output);
    taskInstanceManager.complete(getTaskId(), taskOutput);
    Thanks for helping!
    Best regards
    Johannes
    Edited by: jtrebess on Nov 21, 2011 9:12 PM

  • In J1IS system is not picking net value from PO automatically

    Dear Experts,
    I want to send rejected material to vendor back, so I have done return delivery against MIGO material document, in MIGO, in Excise Invoice Tab i have selected no exicse Entry document. At the time of J1IS sytem is not picking net value from PO. This field is editable. Our requirement is, system should pick net value from PO.
    In this case I am not makeing any RETURN PO
    Could any body guide me? Is there any configuration required?
    Thanks & Regards,
    Trupti.

    There is no link between p.o & excise inv. creation using J1IS.
    In J1IS,Enter return material document no,Ref doc. type - MATD,Doc Year,series group,excise group,series group & finally vendor in selection.
    In excise invoice automatically details like material code,qty will appear.
    You need to enter assesable value & excise duties manually.
    Note :
    Be cautious while entereing excise duties bcoz you may be returning partial quantity to vendor,
    so calculate excise duties in a seperate excel sheet before entering it in J1IS.

  • How to return a value from sql plus activity

    Hi,
    I want to return a value from sqlplus activity to a processflow variable.
    SQL PLUS activity has a property :"RESULT_CODE", whenever i run the process flow this value is always reurned as 0.
    in sqlplus activity i have written some pl/sql block....
    for example
    begin
    end;
    exit
    i want to do something like
    begin
    if v=100 then
    return 1
    else
    return 0;
    end if;
    end;
    exit
    can some please tell me how can i return value from this pl/sql block to proessflow.
    Regards,
    RD_RBS

    table ==> function
    input param from table to function. ==> input mapping paramter to store the output from the mapping.
    Will this now work.

  • BBP_PO_INBOUND_BADI:Transfer value from SRM to ECC PO custom field

    Hello, everyone
         Our SRM version is 7.13 with classic scenario,  ECC version is 6.17.  transferring quotation data to ECC for creating PO by PI.
        I created a custom field such as Z1 for PO in ECC ,  I need transfer someone value from SRM to Z1 when press 'create PO' in quotation,
    So  I have to use BADI:BBP_PO_INBOUND_BADI in ECC before PO generating,  but I found the breakpoint can not  reach this BADI, Why ?  how should I do?
    I used to apply normally  this BADI in SRM7.02 and ECC6.05  without PI  with extend classic scenario.
    Thanks very much
      Jesse.

    Hi Jesse,
    I think the BBP_PO_INBOUND_BADI  is used to enhance the data when the PO is sent via BAPI.
    Please check the PI interface name that you are using and find out the Proxy name (in Tcode: SPROXY) and find an Enhancement spot (either in SRM or in ECC).
    Regards
    Venkat

  • Process creation using Global Automatic Activity - OBPM 10g

    Hi,  I would like create the process instance for my application on every 2nd business day of a month. I also have a calendar defined for checking business day.  But I am unable to figure out to how use that calendar to determine second business day of any month. Global Automatic type is set to Automatic schedule and monthy option was selected. But I believe this would trigger the process on every second day of the month, without considering the fact whether its  business day or not. There is Runs on Holidays checkbox, but not sure what it really does. If it checks for holidays then which calendar does it refers to. Hence, please let me know how can i specify a calendar or any alternate solution to trigger process creation. Thanks, Namit
    n

    I am not sure what you saying..Did u mean Global Creation ? But that would have a user to invoke the process..I want to invoke it automatically...I got a part of the answer...But it takes all instances..and creates multiple instances..I want to isolate the instances previously been transferred..What I am doing is ..Using a Global Automatic to invoke the other process.Writing a PAPI code to call the other process from this process...and Polling By Interval every 1m..
    Here is a code:-
    ProcessService ps;
    ps.connectTo(url : Fuego.Server.directoryURL, user : (String)BusinessParameter.getValue(name : "USER_NAME"), password : (String)BusinessParameter.getValue(name : "PASSWORD"));
    logMessage("Process Service connected--->" );
    businessProcess = ps.getProcess(process : "StartProcess");
    InstanceFilter instanceFilter;
    instanceFilter.create(processService : ps);
    SearchScope searchScope = new SearchScope(ParticipantScope.ALL,StatusScope.INPROCESS_AND_COMPLETED);
    instanceFilter.searchScope = searchScope;
    result2 = businessProcess.getInstancesByFilter(filter : instanceFilter);
    logMessage("Length ==>" +length(result2));
    length = length(result2);
    logMessage("Length Transferred==>" +length);
    test["name"] = "testing";
    if(length > 0)
         for(int i=0; i < length; i++)
              ProcessInstance.create(arguments : test, argumentsSetName : "BeginIn");
    else
         logMessage("length is-->" + length);
    length = 0;
    Any suggestions on how to isolate the previous obtained instances would be appreciated..
    Thanks,

  • Transfer value from one VI to another over a network?

    Hi,
    What is the best/easiest way to send a numeric value from one VI to another over a LAN.  I only need one number to be sent every time the first vi is run which won't be that many, I then need to run the other VI and access that data.  I could save the value to file and then open that file from the other VI, this I thought is a bit messy and wondered if LabVIEW accommodates this through property nodes etc rather than writing to file?  Also by saving to file etc the reading VI needs to execute after the first one has written obviously, this could cause timing issues and to have something like a property node would be far better.
    Many Thanks 

    Use DataSockets. The simplest, although not necessarily the fastest.
    Check out the examples.
    Basically, you "connect" a control on one VI (on one machine) to another control (possibly on different VI, possibly on different machine.
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

  • How do I transfer emails from a non-active superseded inbox to local files.

    I have changed servers and cancelled my old server (email service). I want to transfer all my old emails from my old inbox into local folders so I can delete the old account. I have a new account and a new inbox which is working fine. When I try to transfer emails from the old inbox, the software tries to logon to the old server - which no longer works - and won't let me transfer the emails. I can see and read the emails - so they are on my local computer. I don't want to lose all the old emails. I no longer have access to my old server.

    Imap emails are kept on the server.
    If you synchronized folders for offline use, then it would create an mbox file and keep a copy on your computer. When you connect with server, it updates this file so that the server and your copy are the same.
    As the server is no longer accesible, they will have removed all emails, so you do not want to connect to that server as it would wipe all your emails to match the server. So it is good that you cannot connect. It is also fortunate that it did not make a last connection to an empty server. For future reference it would be better to move IMAP mail account emails prior to stopping the account.
    It sounds like you synchronized emails, which explains why you can still see emails.
    Two options that I can think of:
    Go into 'offline mode' and then try to move the emails into Local Folders.
    Another option.
    Download the addon 'ImportExportTools', then in offline mode, use it to move the emails.
    https://freeshell.de//~kaosmos/mboximport-en.html

  • Transfer values from change attributes

    Hi All,
    I have created custom field on change attribute screen, need to pass the value from this field to shopping cart full function screen field(same custom field on full function screen).
    Please let me know, what badi should I use and method, and what structure should I need to update with this field if required.
    Also internet service object for change attributes .
    Thanks in advance
    jog

    Hi
    <u>HTML - Internet Services (using Transaction SE80)</u>
    BBPATTRMAINT
    BBPDYNATTR
    <u>Try the BADIs -></u>
    BBP_DOD_CHANGE_BADI
    BBP_DETERMINE_DYNATR
    <u>Related links -></u>
    Re: unable to change the attributes of the user.
    Manager is not able to change attribute
    Re: Change password using service BBPAT04
    http://help.sap.com/saphelp_srm50/helpdata/en/b8/bdfc373db56203e10000009b38f842/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/05/45796b2b88fa4eb49fb4bc781a7d50/frameset.htm
    Hope this will help.
    Regards
    - Atul

  • Assets (Investment profile): Transfer value from AuC to Fixed asset

    Good afternoon all,
    We have implemented Assets across investments profile. The settlement of investment is u201CSummary settlementu201D and we do not have u201CList of Originsu201D.
    We have created a project and then a WBS that automatically creates the AuC (asset under construction).  Transaction code CJ20N.
    Then we have created the purchase order (ME21N) and afterwards we have carried out an entry sheet (ML81N) where we have informed the WBS previously created.
    Through CJ88 we have done the settlement of the WBS and we have checked it.
    Now we have created the fixed asset and we would like to transfer the value of the AuC to the fixed asset. I am not able and I am a bit lost. I do not how to perform it.
    Any idea?
    Many thanks and regards in advance. Daniel

    Hi Renfe,
    If the asset is an asset under construction belonging to an investment measure, then the transaction code KO88 needs to be used.
    Warm regards,
    Murukan Arunachalam

  • PLD. How to transfer value from Repetetive area to Start of Report

    Hi.
    Is it possible to get data fromfield in  Repetetive Area to field  Start of Report. I need to get value of some user field in Start of Report. I can get it in Repeptetive area but I can't in Start of Report.
    With regards,
    Maxim Grunis

    Hi Maxim Grunis,
    The answer is:  there are no way to transfer them.  PLD works from top down to the end of report.  It is building printing file on the fly.  The Start of Report know nothing about the other areas.
    Thanks,
    Gordon

Maybe you are looking for

  • Jabber for Windows 9.2.2 - Unable to make calls from PC

    I have implement CUCM 9.1(1a) and CUP 9.1(1a) I can make calls if i used desk phone for calls but iam unable to make calls whet i turn the option use pc to make calls p.s: i have set up CCMCIP  (CUCM ip address) for all users.

  • Cannot load Dynamic templates in RATE Application

    I'm trying to create a new input schedule in RATE application. When trying to open a delivered dynamic template there are no templates to display. How can I reload or repair this issue? Have I missed something during installation or missed to activat

  • Boundary line around image.

    Hello Does anyone know if it is possible to make a boundary line all the way around the outside of a design ? I know this is possible in CorelDraw. I have tried Offset path in ai, but it seems to offset all lines, including the internal lines inside

  • SAP IDM reporting

    I have raised this topic before, but thought I would revisit it now that IDM is becoming more common. What do you do for Reporting ? SAP IDM is delivered with minimal reporting options and the answer is 'Use Crystal', but with all the instances of ID

  • Sample test questions?

    I've been learning FCP6 on my own (combination from Apple's book and lynda.com) and need to take the level-1 certification class so that I can take the FCP300 course. Not having taken any of the intro classes (FCP101, 200, etc.), I don't know what to