WLPI: managing sub-workflows

Hi,
I read in the documentation that WLPI supports the notion of sub- or child-workflows.
I was wondering how this is implemented exactly. Let's say I have one parent workflow
consisting of 1 task. This task starts 10 child workflows, each of which will
have to complete before we can mark the parent's task as completed. How does WLPI
support this? Do I have to write custom code that is executed upon completion
of every child workflow, to check whether all child workflows have completed
and, if so, mark the parent task completed? Or is there built-in support for this
scenario?
THanks,
Martin

There is built-in functionality for this.
Martin van Vliet wrote:
Hi,
I read in the documentation that WLPI supports the notion of sub- or child-workflows.
I was wondering how this is implemented exactly. Let's say I have one parent workflow
consisting of 1 task. This task starts 10 child workflows, each of which will
have to complete before we can mark the parent's task as completed. How does WLPI
support this? Do I have to write custom code that is executed upon completion
of every child workflow, to check whether all child workflows have completed
and, if so, mark the parent task completed? Or is there built-in support for this
scenario?
THanks,
Martin

Similar Messages

  • Workflows | Defining sub-workflows and capturing wfActions

    Hi All,
    I am trying to define a sub-workflow post which I want to make a jump based on the action taken in the one step sub-workflow. I tried to use the wfActions to find the action taken at a step, but the applet shows the following error:
    Offset in runtime evaluation is at character 17. Could not find the parameter 'wfAction'.
    I even tried to do a <$wfSet("myvar",wfAction)$> which gave the same error.
    I tried to capture this action in the Update section of the script as well as in the Exit section. Has someone used this parameter, has it worked on UCM 10gR3.
    Thanks in advance
    - AU

    Kara,
    Thanks for that
    Paul
    "Kara Moscoe" <[email protected]> wrote:
    Your sub-workflow template definition must be defined for the current
    organization, must have a Start node defined as "Called", and it must
    be
    marked "Active" for it to display in the Start Workflow dialog.
    Kara
    "Paul Clements" <[email protected]> wrote in message
    news:3b8e5800$[email protected]..
    Hi,
    I am trying to get wlpi to allow me once a workflow is completed tostart
    another
    different workflow. Hence I have tried on the done icon to add anaction
    of type
    start workflow but when the start workflow window pops up there areno
    workflows
    that I can start even though some exist. Can someone shed any lighton
    what I
    am doing wrong?
    Many thanks
    Paul Clements

  • Starting many instances of a sub workflow

    Hi,
    I'm trying to create a scenario using WLPI studio wherein from a parent workflow
    task I want to start a number of instances of a sub workflow. I want that completion
    of all the sub workflow instances should lead to completion of the parent workflow
    task. How do I do this in WLPI? One way is completion of each of the sub-workflow
    generates an event which parent workflow is listening and updates some of its
    workflow. However, I was expecting that parent and sub workflow works synchronously,
    but I don't know how to configure it... Some of the newgroups mails do talk about
    this feature but as mentioned in the following reply for one such query, but in
    actual it is not behaving like that :
    "Harshad The only time workflows will actually run on parallel threads is when
    you trigger the workflows via xml events. Calling a workflow will always keep
    it on the same thread until a quiescent state is hot in the child workflow. At
    that point control is given back to the parent"

    Yes, that is possible. Let's say you have a package with AID 1122334455 which contains an applet with AID 112233445500 on your card. Now you can create two instances, for example with instance AID 11223344550001 and 11223344550002:
    => 80 E6 0C 00 1B 05 11 22 33 44 55 06 11 22 33 44    ......."3DU.."3D
        55 00 07 11 22 33 44 55 00 01 01 00 02 C9 00 00    U..."3DU........
        00                                                 .
    (30 msec)
    <= 00 90 00                                           ...
    => 80 E6 0C 00 1B 05 11 22 33 44 55 06 11 22 33 44    ......."3DU.."3D
        55 00 07 11 22 33 44 55 00 02 01 00 02 C9 00 00    U..."3DU........
        00                                                 .
    (10 msec)
    <= 00 90 00                                           ...

  • Defining sub workflows

    Hi,
    I am trying to get wlpi to allow me once a workflow is completed to start another
    different workflow. Hence I have tried on the done icon to add an action of type
    start workflow but when the start workflow window pops up there are no workflows
    that I can start even though some exist. Can someone shed any light on what I
    am doing wrong?
    Many thanks
    Paul Clements

    Kara,
    Thanks for that
    Paul
    "Kara Moscoe" <[email protected]> wrote:
    Your sub-workflow template definition must be defined for the current
    organization, must have a Start node defined as "Called", and it must
    be
    marked "Active" for it to display in the Start Workflow dialog.
    Kara
    "Paul Clements" <[email protected]> wrote in message
    news:3b8e5800$[email protected]..
    Hi,
    I am trying to get wlpi to allow me once a workflow is completed tostart
    another
    different workflow. Hence I have tried on the done icon to add anaction
    of type
    start workflow but when the start workflow window pops up there areno
    workflows
    that I can start even though some exist. Can someone shed any lighton
    what I
    am doing wrong?
    Many thanks
    Paul Clements

  • Sub Workflow

    Hi All,
    Wanted to know that whether agent assignment is necessary/mandatory in case of sub workflow being called from a main workflow? ( e.g. like we define possible agents by mentioning general task for a standard task)
    If it is not mandatory, in which cases we <b>must</b> specify agents for sub workflow?
    Regards,
    Akshay

    Hi Akshay,
    Agents assignment is maintained only for dialog tasks. A subworkflow however it is referenced in the main workflow needs agent assignment only for the dialog tasks. I do not think there is ever a case where you need to maintain agents for a sub workflow.
    However you need to maintain agent assignment for a workflow template if the workflow is started directly in a program and not via event linkage.
    HTH,
    Ramki Maley.
    PS: Please post WF questions in the Business Process management forum.

  • First Java Project - Document Management and Workflow

    We are about to embark on our first java project around document management and workflow.
    I would be interested to know how others have approached similar projects – Open Source applications or other tools/APIs.
    It would also be good to know of any issues encountered along the way.
    Thanks,
    Steve

    Hi Husein,
    I appreciate your interest in procuring a Document Management/Workflow solution for your AP department...its a very smart move toward streamling that process!
    I sent an email today to Richard Braddock about our solutions. I would be happy to discuss them with you.
    My office phone number is 215-646-8000
    -Martin

  • How to go back to previous step in a sub workflow?

    We are calling a sub workflow upon approval action from a main workflow. In the child workflow we have 9 steps. If at any step in the child workflow (other than first) user does reject action, the workflow control should go back to previous step in the child workflow itself.
    We added a custom action in the exit events of all the child workflow steps. Following is the logic of exit event of Step4 of child workflow. Similar logic is there for all steps in the child workflow.
    <$if wfAction and wfAction like "REJECT"$>     
         <$wfSet("wfJumpTargetStep", "Step3@childWF")$>
         <$wfSet("wfJumpEntryNotifyOff", "0")$>
    <$endif$>
    With this code when the user is doing reject action from child workflow, it is taking us back to the main workflow and not to the previous step of child workflow.
    Is this approach correct?
    -Pratap

    1. The 3 events are Entry, Update, and Exit.
    2. Rejects happen in the Update area but you can not reliably react to it there because upon reject it immediately leaves (not going through the exit event).
    3. The rejected content goes backwards in the Workflow step by step (even going back to the main workflow from a sub workflow) until it finds a Step that has valid Editors (not just reviewers).
    4. If it does not find an Editor step it goes all the way back to the automatic Contribution step at the beginning of the Workflow and sits there in a kind of no mans land until the contributor (or an admin) goes and approves it again.
    5. To check if something has been rejected the Entry Event of an editor Step BEFORE the step where it is rejected needs to have code to check for the Reject status.
    The sub workflow should be able to capture the Reject as you desire. Are all of the steps in the child workflow (sub workflow) Review only steps? Or maybe the people in the steps do not have RW access to the document? This is what I would predict with your described symptoms.

  • Warnings on sub-workflow that appears to have completed

    Hi
    I am getting some warnings that are resulting in my Workflow falling into error, but don't know where they are coming from.  
    The Workflow log shows that the Workflow has completed the last step, so not sure what it is doing.
    The warnings are coming from executing actions u2018Result Processingu2019 and u2018CHECK_WORKFLOW_INSTANCEu2019
    The warning messages are:
    Message no. SWP027 = Flow item ??? (Workflow 000000XXXX) for work item  has the status "Error"
    Message no. SWP030 = Temporary error in result processing of work item 000000XXXX
    and after the 5 attempts by SWWERRE to continue the Workflow falls into ERROR
    It doesn't occur for ever instance of the Workflow.   It is a sub-workflow if that makes any difference.
    The entries are being logged in SWP_SUSPEN table
    SM12 showed no locks.
    When I manually restart after error, they complete.
    Any ideas where I can look?
    Thanks
    Pete

    Hello,
    A temporary error is causing this, usually it's a user locking something. The WAIT could indicate that someone was trying to avoid this. I would have a careful look at the workflow log, sometimes the error givs more clues, eg which user was doing the locking.
    As suggested above, check the method called for any exceptions marked as Temporary.
    The default is 3 retries, one every 20 mins. What was it in your case?
    regards
    Rick Bakker
    hanabi technology

  • Missing sub-workflow versions in PO, Contract, and Bid workflows

    In SRM 5.0, the definitions for the following workflow templates are missing:
    WS14000076, WS14000085, WS79000003. 
    These are sub-workflows used by WS14000075 (PO), WS14000086 (Contract), and WS79000010 (Bid).  Any feedback will be appreciated.
    Thank You,
    Kiran

    hi,
    14000076 Wait for BUS2201 Events
    14000085 Wait for BUS2000113 Events
    79000003 Wait for BUS2202 Events
    i have checked these and are available , these are all wait events.
    you can see the details in the tranaction
    1) Transaction ---> PFTC
    2) Enter Task type ---> Workflow template
    3) In the Task Enter ---> 14000085.
    4) click Display
    you can see the details , perform the same for other two to get details

  • All about Sub-Workflow...blog

    Hi All - I have been seeing quite a few queries on sub-workflows. Check this blog that I have presented on sub-workflow. Happy to hear comments/suggestions.
    <a href="/people/shireesh.mitragotri/blog/2006/12/19/building-robust-applications-through-sub-workflows sub-workflows</a>
    Cheers!
    Shireesh

    Hi.
    It's not different from normal..
    Just put the WSxxx instead of TSxxx into STEP.
    Ofcourse you dn't need to make the 'Triggering Event'.
    Binding will be made automatically and then you can customize that.
    It's easy.
    Have a nice Day.

  • Workflow stopping @ beginning of sub workflow

    Guys,
    I am calling Sub workflow from MAIN workflow.
    Processing of Main workflow stopping @ the STEP, wherein i trigger sub workflow.
    The status is : In process. (it is a background task to trigger sub workflow)
    If i process it manually with SWIA t-code , it is porcessing further.
    But, it is not processing automatically.
    Please guide.......
    Regrads.
    santosh.

    Hi Arghadip,
    Design Description of MAIN WF.
    BO: ZBUSECM(original: ECM).
    1)WF get triggered by ECO(CC01).
    2)ACTIVITY STEP to extract fields for both (Material & BOM ).
    3)2 level FORK to trigger BOM & Material WF.
    4) CONDITION to check flags for both BOM & Material.
    5)  BOM : if yes, reset flag to space & proceed. if no, no action. proceed further. till end of FORK.
    6) MATERIAL :if yes,reset flag to space
    6a)BLOCK to trigger material WF.
    6b)STEP to Trigger material WF(This will  call sub workflow).
    6c)WAIT step to receive material WF "COMPLETED" event.
    6d)ENDBLOCK to trigger material WF.
    7) END of 2 level FORK.
    8) ECH: Release ECO.
    9) WAIT step to ECM Close.
    10) Send mail for ECM Closure Notification.
    11) WF Complete.
    Design Description of Material(SUb) WF.
    BO: ZBUS1001(supertypel: BUS1001006).
    starting from 6b above.
    1)WF get triggered by 6b event "INITIATE".
    2)ACTIVITY STEP to send the material for editing to  MM COntroller agent.
    3) ACTIVITY STEP to send material for editing to fianance agent.
    4) ACTIVITY STEP to complete the  sub flow by triggering custom event "ZMANITRIGGERMATWFCOMPLETE" , which further calls the "COMPLETED" event by function module to hand over the control back to MAIN WF.
    Now, the above mentioned step(4) is not handing over the control to main WF........
    & also matnr is not being passed to sub flow now........
    Regards  & thanks.
    santosh.
    Edited by: santosh koraddi on Jun 22, 2010 7:22 PM

  • Selective disable/enablement of sub workflows

    Hi,
    I am trying to design workflow with fork(For parallel execution) and many sub workflows. These sub workflows are totally independent of each other and cna have parallel execution. My requirement is to given an option for user to selectively enable/disable subworkflows.
    For ex: My workflow has around 15 subworkflows and all the users may not want all 15 but just a few workflows to be triggered.
    Is there any way to achieve this from using a entry in customizng table where he mentions which all subworkflows he wants to be triggered and only those subworkflows are triggered, when the workflow is triggered?
    Regards,
    Srini.

    Hi srini,
    I think maintenance wise it's better.
    Because basically you're flow would be
       |
      / | 
     A B C
    Based on ?
    any combination of A, B, or C would have to be performed.
    You can do this with the builder in one flow,
    Then it would have a lot of conditions, or some kind of intelligent conditioning,
    You can for instance assign a number to A, B and C with binary values (i.e 1, 2 and 4)
    And then based on ? you add these numbers, so that in the worfklow you know what to do.
    flow would look like
    a multiple condition:
    ? = 1 --> A
    ? = 2 --> B
    ? = 4 --> C
    ? = 6 --> B & C
    Etc.
    With the above way, you can also know in any step of the flow if one of A, B or C is needed.
    It is however verry intensive to maintain espescially if an extra sublflow is needed. With events you don't really care.
    Kind regards, Rob Dielemans
    Message was edited by: Rob Dielemans

  • How Defining Document Management in Workflow 2.6.2 StandAlone

    Some person in Metalink Oracle Workflow Forums tell me this:
    Also would recommend you to refer to Document available on http://otn.oracle.com/products/ifs/htdocs/workflow/workflow.html on how to make use of content management with Workflow
    But when i try to access to this link i cannot and IE show me this error: Sorry, this page was not found. (ErrorDocument 404).
    Some can help me how i get this documentation for setting Oracle9iFS with Oracle Workflow.
    Regards,
    Ramon Sanchez

    Hi EveryOne,
    Any person need this URL http://otn.oracle.com/products/ifs/htdocs/workflow/workflow.html only send one email to my address [email protected] and i respond with this issues.
    Regards,
    Dexter

  • Document Management distribution workflow

    I have activated the document management distribution workflow. When I start the documenent distibution the workflow is not started. When I go back to check the started of the workflow in spro it will be deactivated.
    How can I activated it permanently or is there some configuration that need tobe done?
    Points will be awarded.

    Hie Sreecharan. It is not working. The workflow is continuously being deactivated.
    I am activating it in spro, under 'Perform task-specific Customizing'. Under CA, I go to Document Management and click on Activate Event Linking.
    I expand WS20000104 and click on deactivate and it displays a green buttonthat it is activated.I then click on the properties of the event linkage button. and followed your instructions. The save button will be disabled. When I close the dialog box, on re-opening it, it would have defaulted to 'System presetting'.
    Help.

  • Employees Salary without Time Management sub-module?

    Dear Consultants,
    Where to record employees attendance/absences (time related information) inorder to pay the salary through SAP-HR Payroll? We are implementing PA and Payroll (International). Time Management is not in the scope of the project.
    Could you please let me know, how can we handle this without Time Management. What would be the limitations without Time Management sub-module.
    Thank you all for your efforts.
    Edited by: Business Analyst - HCM on May 20, 2009 2:20 PM

    You have to create atleast the work schedule which will consist of DWS and PSW and then work scheedule rule. Also I think you will require to configure feature SCHKZ to default work schedule rule in IT0007.
    After doing this configuration you can create wagetypes related to ur time and you can pay these wage types through IT2010 ee remuneration info
    if the wt will have rate then that rate you can maintain in T510 and may be to meet the complete requirement you need to write little bit code in CATS exit.
    otherwise you will be able to pay through 2010 and you can enter the data thru CAT2 tcode. Just you need to create a profile and set the view for entering the data like single entry or mass entry.
    SPRO->IMG->Cross-Application Components->Time Sheet->Specific Settings for CATS Regular->CATS Regular->Record Working Time
    hope this will help
    guds

Maybe you are looking for

  • Increase C: Drive and reduce Decrease E: Drive?

    Hi all, My C: Drive is constantly filling up which is causing the overall performance of my laptop to be very bad. It is very slow!!! I have not got many files etc. on my C: drive but it still keeps filling up soon after a cleanup and defrag. My E: D

  • Save PDF-file on the application server

    Hello experts, I convert my Smartform to a PDF-File. I copied the code from  Suresh Kumar Parvathaneni (REPORT zsuresh_test). At first, thank you Suresh Kumar for that! Now, I would like to save the PDF-File on the application server and not local. C

  • Re: [b]creation of 10th Database on single pc[/b]

    GREETINGS, I need to create about 30 database on a single PC win 2000 pro sp1?? I am using Oracle 8.0.4 on Win NT and when i go through the database assistant wizard I am able to create 9 data base successfully. When i create the 10 database the serv

  • Layer Visibility Javascript

    Hi, I am working on a model of a dovetailed drawer. It is a simple model, but it must be made to show different design options - to be able to switch them back and forth. I have tried to use Daniel Beardsley's "Build Your Own Car Prototype" as a temp

  • Can't be used to set up iMessage at this time.

    If this is a new Apple ID, you do not need to create another one. To use this Apple ID with iMessage, contact iMessage support with the code below. Customer Code: 8187-8892-3226