Subprocess Relation with Main Process when Invoked programmatically.

Hi
JDeveloper 11.1.1.6, WLS 10.3.6, BPM 11.1.1.6
I have 2 processes A and B. From A I want to invoke B.
I can think of 2 approaches to do this.
Approach 1. Call the subprocess B from A using Send and Recieve activities.
If we do it this way, when an instance of B is created, it is created as a child of the Process A. (When seen in the EM Console)
Approach 2. Use a Web Service call in the main process. Lets say it is a Java Web Service and we use the following API to invoke the process.
IInstanceManagementService ims = Fixture.getBPMServiceClient().getInstanceManagementService();
Task task = ims.createProcessInstanceTask(bpmContext, pms.getCompositeDN()+"/"+pms.getProcessName());
But I think it will be created as a separate process.
So my Questions are as follows.
a. In Approach 2, is there a way to make the sub process B as a child of Process A?
b. The subprocess B might have to be called more than once in parallel, with some parameters each time.
I want to understand what is the better approach?
Use Approach A to call the from a Subprocess (loop) with Parallel, Multi Instance and use Array to pass parameters for each sub process call?
Or
Use Approach B?
Thanks for any help
Sameer

Hi Sameer,
Your send and receive events would be the better of the two options that you've listed. If the two processes are in the same composite project and send and receive events are used, there would be less overhead to calling the subprocess.
Think you were alluding to this, but you'll also retain the audit trail information if you take the first approach not just in Enterprise Manager but also in the Workspace.
Dan

Similar Messages

  • Workflow tasks related to error processing when u201Cinvoices received via EDI"

    Hi all,
    Please tell me the process like how an workflow tasks related to error processing when u201Cinvoices received via EDI".
    Give me in details the inform.
    Thanks in advance
    Chakri

    Hi Sven,
    Please implement SAP Note: 1321676 in your backend system to solve the current issue.
    But later you will have to implement SAP Note: 1380788 also in your backend system to solve some other issues.
    Regards,
    Binson

  • DVD not opening with main menu when loaded.

    I created a DVD with three short movies and three slide shows. I've made several similar type DVDs and they all open with the main menu when loaded. But in this case, when loaded in the player, it opens with the first movie, not the main menu.
    Any advice would be appreciated.

    Open Map View within iDvd. Is there a movie in the top / first box? If so, select it (one click) and hit the delete key. Now preview your iDvd. If it plays as expected (including the menu and buttons) then proceed with encoding and burning it to Verbatim dvd-r.
    Message was edited by: SDMacuser

  • Extension closed while processing when attached to the toolbar in Photoshop

    Hi, I come accross a strange problem.
    When my panel is attached to the toolbar and I run some operations, the panel close. I narrowed it down to  using activeDocument.colorSamplers, which opens info panel and close my panel in progress. I see in console that my extension is unloaded. It happens only when my panel is attached to the toobar, as soon as I tear it of ane leave it as a standalone window it's not closed.
    I was looking for a solution but any of the approaches I tried ddon't work
    1) Forbid closing - seems not possible as it it standard behaviour of panels attached to the toolbar that if other panel is opened the old one is closed
    2) Forbid attaching my panel to the toolbar - didn't find any way how to achieve it
    3) Reopen the panel - I couldn't find a way how to reopen the panel from inside the extension code. I tried CSXSInterface requestOpenExtension call which didn't work, presumably because I am opening the same extension as I am calling it from (eventhough the currentStateInfo.isLoaded is set to false)
    Do you have some suggestion how to solve my problem?
    With Regards
         Lukas

    lukychan wrote:
    Hmm, I already thought about similar solution - having a small extension which would starts the main panel when invoked
    Problem is it seems I can't have two extensions in one bundle. Or can I?
    Sure you can. I have many extension bundles that have multiple extensions. If you go to the Budle Manifest Editor, it has controls to add and remove extensions. Or you can edit the manifest directly...

  • Exception obtained when invoking a web service generated with JDeveloper

    Hello,
    I tried to create a synchronous BPEL process that invokes synchronously a Java Web Service created with the JDeveloper. The web service is wrapped around a regular Java class. The new created BPEL process is successfully compiled and deployed on the server. But when I try to initiate a test instance of the process in the BPEL console, after I fill the input parameter for then process and push the "Post XML Message" button, I obtain the following error:
    Your test request generated the following exception/fault:
    BPEL Fault: {http://oracle.com/cde/util/Top300DAO.wsdl}org.apache.wsif.soap.fault{org.apache.wsif.soap.fault.object=java.net.ConnectException: Connection refused: connect}
    I looked at flow and it throws the exception when it tries to invokes the web service generated with JDeveloper.
    Do you have any hints, ideas? Thanks a lot in advance for your help.
    I want to also say that the proxy settings for the BPEL server and designer are filled. I think that they are ok because I succeeded to start an instance of another process that calls synchronously an external Web Service.
    Regards,
    Marinel

    My guess is that this is caused by the WSDL of your service having an invalid service address. Can you please take a look at the WSDL of your service make sure that the location of the address is valid? (we have seen a couple of instances in the past where the generated url did not have the right port information).
    Update that WSDL, restart the BPEL server or from the BPEL console clear the WSDL cache and re-initiate your flow.
    Best,
    Edwin

  • FTP Adapter fails first time when bpel process is invoked from concurrent

    Hi,
    We noticed that the invoke of the FTP adapter fails the first time when the bpel process is invoked from a concurrent program. The second time the concurrent is ran, it completes fine. However, when invoked from the console, it compeltes fine the first time itlsef.
    Any idea what could be worng. We are on SOA Suite 10.1.3.4
    Thanks
    -Prapoorna

    What you are doing with FTP adapter? Are you writing a file ? Any error details in logs when it is failing on first invocation ?

  • HT201342 I have not been able to upgrade to a new computer. So I am running an old OS 10.5.8 in a Powerbook Pro 15¨. I recently have had some e-mail problems. I would like to know if this is related with all transitional process from @mac to @icloud.

    I have just starting having problems with my @mac.com account because I still have an old computer. Un fortunatelly so many years this is my main account and no option to send e-mail are possible.
    Is this related with the transitional process from moving to an @icloud.com account?
    regards

    pvonk wrote:
    First of all, your profile says you are using OSX 10.5.8 which is incompatible wth all features of icloud, although users have been able to use icloud's email with older versions.  With the transition to @icloud.com accounts, it's difficult to say what the effect is regarding older versions of OSX.  I've read posts by others who are still using these versions and have now been having problems with emails. 
    iCloud mail is a standard Imap account, any version of OSX (or Windows) with an Imap compatible mail client can use it.

  • In process inspection related with PRT maintenance

    Hello SAP QM gurus,
    I have one issue of In process inspection related with maintenance of PRT. The detail is as follows.
    I have an inspection plan for SFG (Semi Finished Goods) with 15 parameters to check. For production of this SFG material we are using a Production Resource Tool (PRT). After 2000 pieces of SFG production the PRT is to be taken out for maintenance. I have maintenance plan for this PRT and system gives me maintenance order after every 2000 pieces of SFG production.
    My client wants to check the 15 parameters of SFG just before and after of PRT maintenance. After the PRT maintenance and when the production is OK then for every next lot client wants to check only 3 critical parameters and to skip remaining 12 parameters. How to map this scenario?
    Will the DMR (Dynamic Modification Rule) be effective in this case, or else any workaround ?
    Please guide.
    Sanjay

    Dear QM gurus,
    One correction in my thread,
    15 parameters to check SFG is in routing of SFG and not the inspection plan.
    Please guide me.
    -- Sanjay

  • Context when Invoking Long Running Processes

    When I use a long running process to invoke another long running process, the creator of the second long running process is always "System Context Account".
    Is it possible to invoke one long running process using another long running process using the context of the workspace user?  The primary need here is to be able to track the process in the audit tab.

    Hi gary,
    Thanks for the update.
    I have just tried your "Run As" approach which is also not working.
    My testing scenario:
    I have created two processes (a Parent and a Child)
    I have enabled RunAs option with 'Invoker' for the Child process.The parent process is configured to invoke the Child internally.
    I am, as a user, invoking the Parent process from Workspace. The Child process is being invoked; However, the process's creator name still shows 'System Context Account'. I do remember that this issues was exist in previous release as well ES (8.0).
    Is this a bug? or am I missing something in between?
    Please advise.
    Thanks,
    Nith

  • How to Invoke a BPEL process when Insert/Update/Delete happens

    Hi
    As client requirement is we want to execute a BPEL process when there is a DML Operation (Insert/Update/Delete) on a particular table.
    How do we handle this situation. Is there any alternatives if it is not possible.
    Please point me if any documentaion is available.
    Regards
    Kiran

    Hi Kiran,
    What integration tool you are using.
    In Oracle BPEL PM, you can create an empty BPEL process with a "receive" activity and a database adapter partnerlink which polls for change in table records every specified time interval.
    After receiving the table change, you can fire the appropriate BPEL process through "invoke" activity.
    thanks
    Saurabh

  • Invoking a process when a file is placed in a directory

    Hi All,
    invoking a BPEL process when file comes to a dir and write to DB in SOA 11g. Getting an exception when i'm placing the multiple file it is going into
    an ambiguity situation. Can anyone can help me on this if possible.
    Regards,
    CH

    Could you paste the error message here?

  • [svn:osmf:] 11139: Extending class with a 'processLoadingState' stub, invoked when load state is set to LOADING.

    Revision: 11139
    Author:   [email protected]
    Date:     2009-10-26 03:02:38 -0700 (Mon, 26 Oct 2009)
    Log Message:
    Extending class with a 'processLoadingState' stub, invoked when load state is set to LOADING.
    Modified Paths:
        osmf/trunk/framework/MediaFramework/org/osmf/media/LoadableMediaElement.as

    Strobe was used to verify that the problem was not with my OSMF implementation. Since the results were the same, I am more supsicious of OSMF itself or the underlying AIR framework than the player implementation. Either way, the information I've seen says that progressive download of h.264 video is supported on mobile devices with AIR. It would appear that this is not true in all cases.
    The issue has not been observed on not occur on the desktop. It only occurs with StageVideo enabled playback with autoplay on.
    In the actual product the videos play one at a time. Once the user has finished with a video, the player clears the references to the media. These are OSMF calls; the media assigned to the player is nulled. If this is not sufficient for garbage collection, then I am at a loss as to how to proceed. My test uses four videos that are roughly 1 MB. If there is a memory use problem, then it would appear something is broken in AIR or OSMF.
    I want to be sure I report this correctly. The code involved is more than a snippet, it's a media player designed to be embedded in an app. Do I need to include the complete implementation or will a description be sufficient?

  • Would like to purchase PSE 12 to process Camera Raw files for the following cameras: Nikon D800, Nikon DF, Canon G9 and Pentax K-3 does the Raw Converter that comes with  PSE 12 when purchased recognize  the cameras listed in the question or do I need to

    Would like to purchase PSE 12 to process Camera Raw files for the following cameras: Nikon D800, Nikon DF, Canon G9 and Pentax K-3 does the Raw Converter that comes with  PSE 12 when purchased recognize  the cameras listed in the question or do I need to download  the camera Raw Version 8.3 ?

    While the G9 RAW files can be read by Adobe Camera RAW and Lightroom, these file are unsupported at this time. Here is a link to Adobe's latest list of cameras that are supported and this list came out yesterday http://www.adobe.com/products/photoshop/cameraraw.html
    I have not done a comparison between Lightroom and Canon's software but others have and say that Canon's software is clearly better. I am sure when Adobe updates their software again to include the G9 it will be a very good RAW converter as it is will most other cameras.

  • TS1702 My garage band app has crashed & keeps returning to the main screen when I try to open it... I've tried most of the trouble shooting options with the exception of re-installing the app, because I fear I will lose a number of recent projects I have

    My garage band app has crashed & keeps returning to the main screen when I try to open it... I've tried most of the trouble shooting chart (no updates available, tried restarting app, restarted device) all I have left is to re-install the app... My main fear is that if I do this I will lose a load of recent projects that are saved to the app that I've spent the last few days creating... Help...

    I have tried all those things I even updated the software to the new iOS system and it still did fix my problem.
    What happened is that my garage band looks like it will open then it shuts down.
    I have lot of important things on my garage band and I'm afraid that if I uninstall it deleting it then reinstalling it all my work on it will be gone and I can't have that happen.
    Everyday I am hoping that when i go to open the app that is will work but it doesn't it gets ready to turn on then it shuts off , the app doesn't even open all the way and turns off.
    I really hope I don't have to erase it.
    It'll say it's ,lading my songs then it shuts down .
    If I waited for the App Store to come up with an update for garage band should I wait till then to update my app so it doesn't get damaged . I don't want to erase it and all my data get erased . I figured if I wait for an update then my garage band will reset itself but won't delete my data. I'm not sure if that will help. Is there anything you or anyone else might know that can help me with this matter ?
    Thank you
    Simachyahi

  • Relating a Request Number with its Process chain

    Hi experts!
    Do you know if there is anyway (with tables) of relating a "Request number" with its Process chain?
    Thank you very much in advance!

    Hello
    I guess there is no direct way, but you can get it by following:
    1) From table RSREQDONE, you can get infopak name by giving a request no.
    2) Then from table RSPCCHAIN, For Type = 'LOADING', VARIANTE field give the Infopackage name and it will give u the PC.
    Regards,
    Shashank

Maybe you are looking for

  • 8300 SIM card is full! Please delete some SMS Text Messages.

    I have had my BlackBerry Curve since December of 2008. It has recently started acting up, and my main problem is that it claims the SIM card is full. Options SMS Text Text Leve Messages on SIM Card: No I haven't any contacts stored on my SIM. What gi

  • Error 1311, Source file not found, measurementstudio5.cab

    I'm installing Measurement Studio for Visual Studio 6.0 and I encounter: Error 1311 Source file not found, measurementstudio5.cab Any ideas?

  • How to design a system for a bank?

    The company I work for is about to design a system for a bank. This system will be used by office clerks to help their daily works. For example they can handle bank accounts, credit cards, credit products, loans, client data, stuffs like this. It's a

  • WHY CAN'T I SYNC MY X-MARKS BOOKMARKS?

    Mac Book Air running 10.8 Firefox 21 I use X Marks to safely hold my bookmarks. Would never allow Mozilla to backup my years of surfing. I have tried at least fifteen (15) times using multiple ways. including re-setting my password to snyc my bookmar

  • Character format breaks TOC hypertext

    When I apply a character tag to part of a heading and generate a TOC, the TOC entry will be clickable up to where the character tag has been applied. Further to the right, the hypertext does not work. I have this issue both in the Frame document and