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,

Similar Messages

  • 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,

  • 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

  • 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

  • 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.

  • Unassign a task using Global Interactive activity.

    Hi,
    There is a task assigned to a particular user. I want to unassign that task from Global Interactive activity but it is not working. Steps followed by me are:
    1. Global Interactive activity for unassigning any task at any time from the instance drop down.
    2. A screenflow is called in the Global Interactive activity for unassign.
    3. In the screenflow I have an automatic activity where I have written Participant.next=Participant.Unselect;
    The log message in the automatic activity after the above written code shows participant value is blank. But when it comes out of the screenflow to the main process the participant automatically gets assigned. In the workspace the activity shows that it is still assigned to the user.
    Note: I cannot use OOTB feature of Unassign because I need to show a screen with some reasons for Unassign, so I'm using a screenflow.
    Kindly revert ASAP.

    Hi Yasmin,
    Try executing the code at the process level or use the product feature 'Unassign'.Hope it helps.
    Regards,
    Ritu S.
    Edited by: Ritu Singh on May 17, 2010 1:21 AM
    Edited by: Ritu Singh on May 17, 2010 2:04 AM

  • Global automatic activity's HTTPS listener

    Hi all,
    I have a client application (POS point of sale) that needs to invoke a process. The POS system sends its messages in a specific XML format over HTTPS protocol and I can't play with this part. I'm trying to develop a custom event listener but the provided sample is not enough.
    Bea help is appreciated
    Thanks guys

    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

  • A few process instances in automatic activity  simultaneously

    Hi
    I am creating and initiating new process instance using Global Creation activity. I have put screenflow in Global Creation. An instance after completing the screenflow in Global Creation activity goes to BeginIn of the process. When I test it many times I get only  from time to time warning:
    Instance '/BackgroundUpdate#Default-1.0/157/0@xxx' is not in activity '/BackgroundUpdate#Default-1.0/doUpdate'.
    Details: Instance is in activity '/BackgroundUpdate#Default-1.0/WaitToProcessNextPackage' and has status 'RUNNING (1)'.
    "doUpdate" and "WaitToProcessNextPackage" are activities (automatic components) placed after Begin in the process ("doUpdate" is subsequent for BeginIn and "WaitToProcessNextPackage" is subsequent to "doUpdate" activity). When I get this warning no logic is executed for the process instance in "doUpdate" activity.
    How to solve it? Only one process instance created with Global Creation activity can be in one automatic activity? If there two process instances simultaneously in automatic activity, then one them won't be processed?
    Thank you in advance
    Regards
    Peter
    Edited by: Piotr85 on Apr 21, 2010 6:03 AM

    what does they means by service thing here,,,,and how do we specify it? or use it?
    Any application running in Oracle RAC clusterware is considered as a service. What is a service in the windows,its kinda same. If its a part of RAC and an application and running,its service.
    Read from here about services,
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/mgmt_db.htm#sthref2266
    If you don't know RAC yet, better is to leave it.Its the core of RAC if you ask me.
    does resource_consumer_grp and Service name parameter in job class definition are mutual exclusive?or not
    Did you check in the docs for the same?
    HTH
    Aman....

  • Approval process creation steps using JDeveloper in OIM 11g R2

    Hi,
    Please help me to create approval process creation using JDeveloper and how to use the approval process in OIM provision in OIM 11g R2.
    Thanks in Advace,
    srini

    refer developer's guide to get the detailed steps. http://docs.oracle.com/cd/E27559_01/dev.1112/e27150/request.htm#BABFFJDH
    Also refer OBE tutorial http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/oim/oim_11g/Custom_Approval_Process_for_Resource_Request/custom_approval_process_for_resource_provision.htm#t3
    There will be slight changes in the steps as this OBE is for 11gR1.
    High level steps:
    Create a new application using the following command
    ant -f <OIM_HOME>/server/workflows/new-workflow/new_project.xml.
    It will be created in OIM_HOME/workflows/new-workflow/process-template/ directory
    Openthe .jws file in jdeveloper and edit the default human task and add whatever logic is needed.
    Then deploy the composite after which you need to create an approval policy and link the SOA composite created
    Edited by: Durgaprasad on Apr 24, 2013 1:55 AM

  • Polling or JMS Message in Global Automatic

    Hi,
    I am currently working on a process which uses a Global Automatic activity to invoke a process instance. The process instance is invoked when the process receives some ticket information ( ticket id, type of ticket, customer name etc.) from an external application. This information is passed to the process using a web-service.
    Now, I am confused whether to use JMS message or Polling by Interval inside of the Global Automatic acitivity to receive the message with the ticket information. Could anyone please suggest..
    Also does anybody have an example of invoking a process instance after receiving a JMS message...?

    HI!!!
    In this URL of the Glorius bea.edocs.com, there is an example about working with JMS
    http://egeneration.beasys.com/albsi/docs55/index.html

  • Invoke subflow from method implementation of automatic activity

    Hi,
    I am able to invoke a process from automatic activity (Process Creation), but if I want to invoke it as a subflow i.e. (calling process wait for sub flow to return and the sub flow send back the result to the calling process), how can I do that. If any body has done that please let me know the steps. Actually my requirement is to call a process as subflow from screenflow automatic activity.
    If this is not possible can I call a procedure from screenflow automatic activity.
    Regards,
    Ketan

    Hi Ketan,
    If you're forced to use PBL to create an instance in another process from an Automatic task inside a screenflow and then have the child spawned synch back with the parent process, here's an approach you could take.
    1) Downstream in the parent process add Notification Wait activity where you want the child subprocess to return to the parent when it completes. You'll need to define the argument variables in this activity that you want mapped back.
    2) In your child process, add an automatic activity as the last step in your process. Inside this Automatic activity, have it send a notification via PBL to the corresponding Notification Wait activity in the parent process and have it pass the argument variables you want returned to the parent process.
    Hope this helps,
    Dan

  • Webservice vs JMS in Global Automatic

    Hi all,
    My client wants to automatically initiate a process after receiving some information from a web service. I have to use a Global Automatic activity to do so. I understand that the Global Automatic activity has an option to listen to an automatic JMS message and trigger/start/initiate the process..
    But the global automatic activity has no option to trigger/start/initiate the process after receiving some information from a web service. Can this be done irrespective of whether the Global Automatic activity has the option or not? Or do I have to only use JMS message to trigger the process?
    Edited by: user647659 on Aug 7, 2009 7:29 AM

    But the global automatic activity has no option to trigger/start/initiate the process after receiving some information from a web service. Can this be done irrespective of whether the Global Automatic activity has the option or not? Or do I have to only use JMS message to trigger the process?To see how to create an instance from a Global Automatic (or any activity) using logic go to How to create Instace of another process from running process.
    Dan

  • Start process from global creation using a signal in Oracle SOA Suite 11g

    I want to start a process using a signal or an automatic activity from a link in the BPM workspace. The only way I have found to do that is using an initiator human task activity, but I just want to execute some script activities without a task flow.
    Any idea?

    Hi,
    Some considerations:
    - The path <DOMAIN_HOME>/lib is usually used to place shared libs to the Admin server (jdbc libs to allow connection factory configuration, for example)
    - The path <OSS_HOME>/soa/modules/oracle.soa.ext_11.1.1 is the right place to put shared libs that will be used by SOA composite applications (like javaAction implementations for Fault Handling Framework or libs called within Java Embedding). See the readme file inside this directory to know how it works.
    Also, changes in the startWeblogic script will affect the JVM of the Admin Server. To apply changes to managed servers, like the soa_server, make your changes in the startManagedServer script.
    Lastly, pay attention in the parameter you are passing to the JVM. The correct parameter is -Dlog4j.configuration=file:<PATH> and not -Dlog4j.configuration=<PATH> as you are using.
    With this in mind, I published a new post in my blog that explains what is necessary to do to call Log4j within a BPEL process: http://blog.andrade.inf.br/2010/09/generating-custom-logs-with-log4j.html
    I hope this may help you.
    Regards,
    Rafael Andrade

  • I am looking for a way to automate index creation using Adobe Reader Pro without having to use the screen user interface, as the indexing has to be run by a batch process.

    I am looking for a way to automate index creation using Adobe Reader Pro without having to use the screen user interface, as the indexing has to be run by a batch process.

    [discussion moved to Creating, Editing & Exporting PDFs forum.]

  • Aborting an Automatic Activity from OBPM 10GR3 workspace

    Hi all,
    I can abort Interactive Activities from the OBPM 10GR3 workspace just by selecting that instance, the selecting the action as ABORT from the BULK ACTIONS on the right hand side and the entire instance is aborted.
    But how do I abort Automatic Activities from the OBPM 10GR3 workspace?
    When my instance arrives at an automatic activity, I am unable to abort it from the BPM workspace.
    There is no option when you right click an Automatic Activity and select RUNTIME , which says, "If enabled, the instance can be aborted by the user".
    So how do we do that ( from the OBPM 10GR3 Workspace)?

    The "If enabled, the instance can be aborted by the user" needs to be selected when you abort via PAPI...
    Since aotumatic activitys do not appear in the workspace you cannot abort them from there.
    You can connect via PAPI, find the instance and abort it from another instance.
    Even though must automatic activitys are built so they finish before you can even go and abort them.
    I think its a strange design to have an aotumatic activity that is up long enough for you to cancel it but as i said above...
    1) Select abortable on the activity.
    2) Find the instance and abort
    Fuego.Papi.InstanceFilter ifilter = new InstanceFilter();
    ProcessService.connectTo(url : Fuego.Server.directoryURL, user :<username>, password : <password>);
    ifilter.create(processService : ProcessService);
    ifilter.searchScope = new SearchScope(participantScope : ParticipantScope.ALL , statusScope : StatusScope.ONLY_INPROCESS);
    //Notice i write public variable and not instance variable
    ifilter.addAttributeTo(variable : <public variable (such as description or one of your own)>, comparator : Comparison.<the one that fits you>, value : <value>);
    Fuego.Papi.Instance[] cInstances = ProcessService.getInstancesByFilter(filter : ifilter);
    foreach (instance in cInstances)
    //Second type of filtering (checking current activity and process), you can check just the activity name if its a unique name
    if (instance.activityName == <aotumatic activity name> && instance.processId.contains(regexp : '/<process name>/'))
    instance.abort();
    I use a similer code snippet to remove Interactive activities.
    Just notice that you filter only the instances you really want to take down.

Maybe you are looking for

  • Fonts not appearing correctly

    Hi. My fonts are defaulting to Arial Bold Italics in Safari and Arial Italics in Mail. Even typing this message they have turned to Arial Bold Italics. A little help will be appreciated Thanks

  • How to get only the lower words with 10g regular expressions?

    below is a small test case, but last sql didn't work as I expected, any suggestions? thank you. CREATE TABLE tab_regexp_tst ( vtest_col VARCHAR2(50) ); INSERT INTO tab_regexp_tst VALUES ('hakan'); INSERT INTO tab_regexp_tst VALUES ('KEMAL'); INSERT I

  • Unable to understand meaning of next_time in v$archived_log

    hi all, i am working with 10g standby databases. There are column names FIRST_CHANGE#, FIRST_TIME, NEXT_CHANGE#, NEXT_TIME in v$archived_log. I am unable to understand the exact meaning of these columns by reading the oracle document. Can somebody ex

  • How to Change Font Size of Program Itself?

    My Adobe Reader has some interesting font sizes going on. How do I change these to make the menu and sidebars more readable? Here is a picture of what is happening: http://i.imgur.com/AmtFd5S.jpg You can notice that the Bookmarks sidebar has a font s

  • USB Modem naming conventions

    Hello All, I have one query regarding the USB modem enumeration in MAC OS X, using CDC drivers, I have observed that for some USB over serial connections the the serial port enumeration is as given below, tty.usbmodem1513 tty.usbmodem1512 and for som