Sub process

Hi,
I would like to know if there is a way to call a subprocess or a different process from global interactive activity. The requirement is. once the subprocess is called, the user should not be able to execute the parent instance. Only when the instance returns from the sub process, the user should be able to proceed. Please suggest.
Thanks in advance

Hi,
Since the Global Interactive has instance access there'd be a lot of moving parts. I apologize in advance - I have completely obsessed over this.
I put a project out on http://www.4shared.com/file/117294058/7685a219/InvokeSubProcessFromGlobalInteractive.html that you could download and import to Oracle BPM 10g to see what you think.
I obsessed over this a little too much (ok - way too much), but it was an interesting challenge. If you're not comfortable with this, it's completely my fault that I've made it seem too difficult. Not that hard, but it takes a knowledge of Message Wait activities, creating Correlations, sending notifications and creating instances in another process using logic (ok - maybe you should try to talk the customer out of going this route and lean them towards a simple SubFlow activity).
Here's what I did to get this to work if you're curious. If your Global Interactive activity has instance access, you could have checkbox in the UI that is presented when you invoke the Global Interactive. The checkbox would be tied to a Boolean attribute in the instance's BPM Object. I'm calling this attribute "spawnSubprocessAndLockParent" in this scenario. This will act as a flag to tell the Global Interactive to spawn a subprocess and to lock the parent instance if checked.
Here are the steps I did:
In the parent process:
1) created a correlation as the first activity in the process and terminated the correlation in the last activity in the process
2) added the Boolean "spawnSubprocessAndLockParent" attribute to my instance's BPM Object
3) created a presentation with this attribute
4) added this presentation to the Global Interactive's screenflow
5) inside the same screenflow, if the user checks the checkbox it goes to a new Automatic task in the screenflow that uses logic to create an instance in the child process.
6) changed the screenflow for the parent process's activity to detect if the "spawnSubprocessAndLockParent" Boolean variable is true when it enters the Screenflow. If it is false, end users can edit the normal UI presentations and submit in the normal way it does now. If it is true, however, end users can only bring up read only UI presentations and have them exit the Screenflow via an Automatic task that has the logic "action = CANCEL".
7) in the parent process, added a Message Wait activity that has no transitions coming into it or going out of it. Its "Runtime" property setting for "Waits for" need to be set to set to "External" and the "Allows interruptions" property needs to be checked.
8) in the parent process, added an Automatic activity with just this one line of logic: "action = SKIP"
9) added an unconditional transition from the Message Wait activity to the Automatic activity added in step 8
In the spawned child subprocess:
10) in the subprocess spawned in step 5, just before it reaches the End activity add an automatic activity that sends a notification to the parent process's Message Wait activity.
Hope this helps - again sorry for obsessing,
Dan

Similar Messages

  • Can we define a function in a sub process?

    Hi ,
    I want to know whether we can define a function in a sub-process ? coz I see only notifications defined in the sub_process in seeded oracle workflows .
    also highlight if we are the running the workflow from developer studio do we need call the main process first or the sub-process first ?
    Regards,
    Shashk

    Hello Shashk,
    Yes functions can be used in sub-processes. If you are creating a custom function, it must be defined in a specific fashion to work with WF. See the Workflow Developer Guide for your version. 2.6.2 available here:
    [http://download.oracle.com/docs/cd/B10501_01/workflow.920/a95265/toc.htm|http://download.oracle.com/docs/cd/B10501_01/workflow.920/a95265/toc.htm]
    Not sure about Developer Studio per se but typically you can run any process in a workflow that is marked 'runnable'.
    - James

  • Error in 'eMail Response - Process Message' --- Error running sub-process 'eMail Response - Create Activity' at step 'Create Activity Process'.(

    Hi,
    When I was simulating the 'eMail Response - Process Message', I had been getting the below error when entering to 'Create activity Process' step.(provided all the inputs per testmode.xml file)
    Error running sub-process 'eMail Response - Create Activity' at step 'Create Activity Process'.(SBL-BPR-00183)
    I increased the log level to 5 and got the below message in log file
    ObjMgrBusServiceLog    InvokeMethod    4    0000000251b51f04:0    2013-06-10 01:30:12    Begin: Business Service 'XML Hierarchy Converter' invoke method: 'DocToHier' at 12cc4240
    ObjMgrBusServiceLog    Error    1    0000000251b51f04:0    2013-06-10 01:30:12    (xmlcnvsv.cpp (548)) SBL-EAI-00246: XML Hierarchy Converter error - empty input message, expecting an XML document in <Value> of input arguments
    I was wondering I could not find 'XML Hierarchy Converter' business service in 'eMail Response - Process Message' and 'eMail Response - Create Activity' sub process.
    Can any body help me out in this regard.
    Thanks in advance..
    Jagadeesh

    Hi Naresh,
    yes, I am using the delete polling strategy. Here is the .jca file:
    <adapter-config name="Pozadavky" adapter="Database Adapter" wsdlLocation="Pozadavky.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
    <connection-factory location="eis/DB/PozadavkyConn" UIConnectionName="PozadavkyConn" adapterRef=""/>
    <endpoint-activation portType="Pozadavky_ptt" operation="receive">
    <activation-spec className="oracle.tip.adapter.db.DBActivationSpec">
    <property name="DescriptorName" value="Pozadavky.Pozadavky"/>
    <property name="QueryName" value="PozadavkySelect"/>
    <property name="MappingsMetaDataURL" value="Pozadavky-or-mappings.xml"/>
    <property name="PollingStrategy" value="DeletePollingStrategy"/>
    <property name="PollingInterval" value="120"/>
    <property name="MaxRaiseSize" value="1"/>
    <property name="MaxTransactionSize" value="10"/>
    <property name="NumberOfThreads" value="1"/>
    <property name="ReturnSingleResultSet" value="false"/>
    </activation-spec>
    </endpoint-activation>
    </adapter-config>

  • Unable to start from sub process

    The scenario of our application is :
    We have multiple processes,each again having multiple activities inside them.
    There is one main processes and the others are all sub processes.
    The main process looks something like below :
    Start->Sub-process1->Sub-Process2->Sub-Process3->Sub-Process4->Sub-Process5->End
    My requirement is to start the main process from Sub-Process2,rather than the usual way of instantiating the main process.
    I tried configuring Sub-Process2 as an alternative Start (in the Work Flow Builder),but that doesnt seem to be working.
    I am using Java APIs to interact with Oracle Work Flow.
    Any ideas ??
    Amit.

    One possibility is to call WF_ENGINE.CompleteActivity() if you need to start a process with an activity node that is mid-stream in a process thread and not at the beginning of a process thread. The activity node you specify as the beginning of the process must be set to 'Start' in the Node tab of its property page.
    http://download-west.oracle.com/docs/cd/B10501_01/workflow.920/a95265/wfapi42.htm#comact

  • BPM 11g Workspace Audit Trail not showing Sub process inner activities

    Hi all,
    I have been developing some BPM Process in JDev 11.1.1.5 and have deployed them in BPM Suite 11.1.1.5 over Windows Server 2003. I've found the following and would like to hear your opinion:
    1- The Process audit trail in BPM 11g Workspace shows the activities of the process but the Sub-Process call activity appears as just a single activity and you can not see the inner activities of the sub-process... making impossible to track the sub-process.
    2- In the EM Instance trail you can track the subprocess activities, but they appear wrong; diffrent names, diferente types (ex: interactive activity shown as service call)..etc..
    Are these known issues? is this the expected behaviour? Is it just some configuration I missed?
    Thanks for your time.

    For anyone with the same question, I got this from Oracle support about both questions:
    1- I checked with our Engineering team and regarding the expanding of the subprocess activity , it is planned to be released in 12g. So right now , it is a work in progress feature being addressed by our developers.
    2- Thanks a lot. I have reported a bug 12909848 to our Engineering team. You can track the status of the bug from the SR.

  • Calling BPM Sub Process from another BPM Process - Stuck at Sub Process

    Hi
    JDeveloper 11.1.1.6, BPM 11.1.1.6, WLS 10.3.6
    I am trying to Call a BPM Process from another BPM Process. Both the processes are defined in the same BPM Project.
    Both the Processes have 'None' Start and End activities.
    The 'Parent Process' has a 'Call Activity' which calls the 'Sub Process'.
    The Sub process takes a parameter of payload object as input and returns output (also same payload object)
    I have passed the payload object from parent to sub process in the 'Data Associations'.
    The Start and End activities in the sub process also have the data associations set where I am passing the payload object from parent process to child process.
    When I run the process and see the Enterprise Manager console - Audit Trail / Flow tabs,
    Flow Tab - The progress of the process is showing only till the Calling of the sub process in the Parent Process. It does not show the Sub Process.
    Audit Trail Tab - Shows that the Sub Process is called but has not reached to the End of the Sub process.
    The audit trail does not have links to the sub process activities.
    I cannot see any exceptions as well in the audit trail.
    How can I find out why the process is stuck? Or what is going on in the process?
    Please let me know if my explanation is not clear?
    Thanks for any help
    Regards
    Sameer

    Thanks for replying.
    I have another Sub Process with Start and End events as Message Events and used Send Task and Receive Task (Implementation : Process Call) in the Main process to invoke the sub process asynchronously.
    Then, the Sub Process is shown in the 'Flow Trace' as child of the main process.
    In this particular one, I used 'Call Activity' to call the sub process.
    So the Audit trail is showing the sub process as a child.
    But what I was trying to say is that the audit trail did not have links to the entries in the 'Event' column (in Enterprice manager - instance window). (like Instance entered activity, Instance left activity etc).
    I was intending to use these links to see the payload information and try to debug if there is any problem with the code.
    The actual problem I was trying to say in the post is that, even after the user responds to the activity (User Task - Approval) in the Sub process,
    the audit trail is not proceeding further.
    In the Sub process definition, after the user task, there is End with none implementation.
    Hope it is clear now.
    Thanks and Regards
    Sameer

  • Getting the sub Process instance id through PAPI

    Hi Can anyone suggest me how to get the sub process instance id using PAPI?

    I was only able to figure this out as follows... If you have an InstanceInfo variable (called "instance"), then:
    InstanceEvent[] events = new fuego.papi.InstanceEvent[0];
    events = session.getInstanceEvents(instance.getId());
    for (InstanceEvent event : events) {
    if (event.type == 14) {
    System.out.println("child instance ID is: " + event.eventData);
    I ended up creating a recursive function that would drill down to get sub-sub-...-sub-instance IDs as necessary.
    Todd

  • Killing a sub process from it's parent process

    does any one know if ther's a way of killing a sub process from it's parent process?

    There are a few ways to do this depending on how the subprocess was invoked and if you are inside the parent work item instance or if you are using PAPI.
    If you are not using PAPI, here's how you could abort the child work item instances spawned by a parent process's work item instance.
    Asynchronously Spawned Children
    If a child process was invoked using an asynchronous Process Creation activity, the work item instance in the parent has a predefined hash table variable called "children". Downstream of the parent's Process Creation activity (called "SpawnChildren" in the PBL logic below), you can get the child's instance id using the children hash table and use this to send a notification to a Message Wait activty in the spawned child process instance using logic like this:
    send Notification
            using instanceId = children["SpawnChildren"],
                  activityName = "TerminateChild",
                  parameters = nullThe Message Wait activity needs to have its "Allows Interrupt" property checked in the child process. As you add this Message Wait activity (called "terminateChild" in the example above) make it an orphan with no transitions in or out initially. Once notified by the parent process, it still needs to be aborted so add a new Automatic activity in the child with this logic:
    action = ABORTFinally, add a transition from the Message Wait activity in the child subprocess to the Automatic activity.
    Synchronously Spawned Children
    If all you know is the parent work item instance's id and the child subprocess was invoked using a synchronous SubFlow activity, you could send a notification to a Message Wait activity that has it's "Allows Interrupt" property checked in the parent. If the Message Wait activity flows to an Automatic activity, you could use logic like this to kill the child subprocess work item instances synchrously spawned by the parent:
    for each ch in ProcessInstance.children do
        send Notification
            using instanceId = ch,
                  activityName = "TerminateChild",
                  parameters = null
    end
    action = SKIPSince the parent's instance was stuck in the Subflow activity, you'd need to send a notification to the parent's Message Wait activity in the parent process.

  • AR process and Sub process documentation

    Hi,
    I am working on AR process and sub process …Can any one please mail me the   documentation / links on
    AR high-level process &and AR sub process like….
    Manual invoicing (where there is no SD invoice)
    Direct debit Process,
    Automatic matching of Incoming payments,
    Remittance advice/ payment advice,
    Debit Not process & credit note process
    Electronic Bank Statements
    User exits (on payment advice)
    Credit managment process
    Points will be awarded accordingly
    MY mail id is [email protected]
    Thanks
    Sireesha

    I would suggest reading the pdf files from Siemens.
    you can also find some files in www.easymarketplace.de
    but the best thing to do would be to practise a lot in a test system and get the overview from people who worked in AR for atleast 6 months....
    the pdf files, though they are comprehensive are very intricate and never explain the entire business scenario in simple words..

  • Sub process chain in 3.5

    Hello,
    Can we create a sub process chain which will be used in the main chain in  BW  3.5 ????
    Thank you very much

    Hi Kai,
    Yes, that can be done. Usually called as local chain.
    Its the same way as we do in 7.0
    Naveen.A

  • Use of BPM Sub-Process

    Hello Experts,
    I'm beginner and I wanna know when we will go for BPM sub process.
    I know there are two types of process(embedded and reference), but I wanna know when we will go for embedded sub process and for reference sub process.
    If possible please share some examples for both the process.
    Thanks in advance.
    Regards,
    Sriram

    You can use embedded sub-process in BPM when the child process (sub-process) is dependent on the parent process. By this it means that the sub-process cannot execute by itself.
    An embedded sub-process cannot have start and end events, although it can have other sub-set of events like timer, escalation and boundary events.
    You can use a referenced sub-process when you want to re-use an existing process. A referenced process is an independent process, which can exist of its own. If you want to use that existing process in your BPM Process then you can call it using referenced sub-process. Also make note that your main process will wait till the referenced sub-process completes its flow.
    Also if you feel that some process can be re-used by others then you can make it as a separate process and use it in the main process using referenced sub-process. This way others can also re-use the sub-process.

  • Business Process and sub Process IN ERM and CUP

    Hi Friends,
    We are in intial stage of GRC implimentation. Now I am uploading the roles into ERM and CUP. I have defined business processes and sub processes for the roles and upload the roles successfully in ERM. But when I am doing the same excercise in CUP especially during creation of sub process it is not allowing the charecter "-" in the name space.
    E.g. Business process name is EHS-SM (Uploaded to CUP)
           Sub process name is EHS-SM1.1 (not allowing to create in CUP wher as successfully created in ERM)
    My question is
    1. why it allows me to do the same thing in ERM but not in CUP.
    2. Is there any way to maintain the name with chaecter "-".
    For your information I am in the phase of defining the attributes for the roles.
    Thanks & Regards,
    Satyabrat
    Edited by: Sunil Varghese on Oct 28, 2009 10:59 AM
    Edited by: Sunil Varghese on Oct 28, 2009 11:01 AM

    Hi all,
    I will have a hard time ahead with  BP and SBP. all are in the same format. I dont think my company will agree to change the name of there BP  or SBP because they are thousands in count and also there is no other way around in GRC,
    Let give me a try...
    Thanks Guys for your support and time.

  • Business process and sub process in CUP & ERM

    Hi,
    We have created Business Processes and Sub- Processes in ERM. But we are not able to view the same when we create a request in CUP.
    We have created the Business Processes and Sub- Processes for CUP in Roles -Attributes.These were then visible in the request.
    Do we need to create the Processes and Sub-processes independently in both ERM and CUP or should it flow into CUP when roles are imported into CUP from ERM ?
    Thanks and Regards.

    Another important point:
    In CUP, Sub Processes are optional, in ERM they are mandatory.
    Please make sure you have some in CUP for all your processes.
    Frank.

  • GRC AC 10 - Defining sub processes

    We are in the process of implementing AC 10 and need to define the Business and sub processes for the role creation methodology and to upload the existing roles into AC Role management tool. The issue is we have only Business process defined for our existing roles and there is no sub process defined/exist for the roles as they are created as per the BP and position wise. 
    I would like to know how we can define the sub processes for our existing and future roles as  our company does not have the sub processes defined. We define roles on the basis of Business process followed with the staff position.

    Defining Sub processes is functional task .You can get help from your BAu2019s and FAu2019s . After defining business process you can decide default access for business process and additional  access can be requested by mentioning role name .
    Check this : http://help.sap.com/saphelp_grcac10/helpdata/en/27/00965aaa2d4fb0aba7600533fa7570/frameset.htm ( check Default Roles )
    In GRC 10 . You can define sub process in SPRO->GRC->AC->Maintain Business processes and Sub processes  .
    Thanks
    Aditya
    Edited by: Adityatd on Jun 24, 2011 4:11 PM

  • BPMN 2.0 transaction sub-process support

    The BPMN 2.0 spec defines a Transaction Sub-process as follows:
    A Transaction is a specialized type of Sub-Process that will have a special behavior that is controlled through a
    transaction protocol (such as WS-Transaction). The boundary of the Sub-Process will be double-lined to indicate that it
    is a Transaction (see Figure 10.33). - page 178
    I cannot see how to model this activity in BPM Studio (11.1.1.7).  There doesn't appear to be the double-lined sub process activity available in the component panel.
    Are transaction sub-processes supported in Oracle BPM Suite?

    The BPMN 2.0 spec defines a Transaction Sub-process as follows:
    A Transaction is a specialized type of Sub-Process that will have a special behavior that is controlled through a
    transaction protocol (such as WS-Transaction). The boundary of the Sub-Process will be double-lined to indicate that it
    is a Transaction (see Figure 10.33). - page 178
    I cannot see how to model this activity in BPM Studio (11.1.1.7).  There doesn't appear to be the double-lined sub process activity available in the component panel.
    Are transaction sub-processes supported in Oracle BPM Suite?

  • Sub-Process Main Process Web-Service

    Hi,
    I have a main Process and a sub-process inside this main process.
    I have a Wait activity inside this sub-process, which waits for an external call from another system to call my Web-Service at this Wait activity. This Web-Service is built as Process As a Web-Service Call.
    But I fail to get any information back from this Wait Activity which keeps waiting for the call from the external system which calls my Web-Service at this Wait Activity.
    But the external system is calling my Web-Service and it gets a error notification from BPM..
    Why is that so?
    Is it because its a sub-process inside a main process or something else?

    Did you use PAPI code inside your web service or did u just use PAPI Web Services ( like did u just pressed the button Launch PAPI Web Services ) and it created the WSDL for you and u used it to create the client?
    I am using the latest version of OBPM..
    Oracle 10.3.10
    Can you let me know what do u mean by PAPI interface.. Is it the PAPI code of is the PAPI Web Service which is built by BPM automatically and could be used?
    Edited by: user8707382 on Sep 10, 2009 9:00 AM

Maybe you are looking for