Parallel workflow instances

Hi Experts,
Need help for the scenario on which i am working..
SAP System: ECC 5.0
Scenario:
1) Material master workflow is triggered through a customized event and  we are passing material number
and Sales Org as the object key for Business Object.
3) Based on the Sales Org, plants will determined using a background task.
2) After this we have to send tasks(for creating a view) to the agent, for a plant and material combination
and these tasks should be in parallel. number of plants can be more than 100.
3) Once all these parallel tasks is completed then workflow should continue .
4) other workflow task based on material and sales org combination...
For sending parallel task for a material and plant combinations (Point 3), i can trigger a seperate workflow.
so there will be n instance of this new workflow based on material and plant combination.
But my concern is How workflow will know that all the workflow instances of new workflow is completed
for the material for which main workflow is triggered.
Please suggest.
Please let me know if there is a some other way for sending parallel task from the workflow..
Thanks,
V

I will create a new step and pass the remaining plants using the same Table-Driven Dynamic Parallel Processing .
Again i have a issue, there will be multiple parallel task created but how i will know which particular task is related to which plant.
I want to pass the plant name in the Task description, how i can do that...
I will a create a new thread for this issue.
Regards,
Vargi

Similar Messages

  • Workflow instances problem

    My problem is that in workflow i am sending workitem for manager approval.If manager rejects the workitem it goes to employee back for correction and resubmission.But what is happening once workitem is send to employee for correction the current workflow instance is completed and when user changes the report and resubmits it a new workflow instance will be created.This all increases load on the working system.
    Can we keep the same workflow instance working till report is rejected or accepeted and then only workflow instance is completed.

    I think you can make use of Function module
    SAP_WAPI_WORKITEMS_TO_OBJECT
    in a virtual attribute that will check whether any existing wflow is already triggered for it. If yes set the Flag(Virtual attribute) value as X. Make use of this attribute in th Start ciondition of the wflow in SWB_COND Tcode.
    Now in your workflow the approval step should be inside a loop that loops until the request is approved. Inside the loop the approval step should be in fork with 2 parallel branch and 1 necessary. In 1 branch put approval step and in other branch put the Wait for event step.
    Thanks
    Arghadip

  • Unhandled exception occurred during the execution of the workflow instance

    I had a workflow and library working with no issues, but had to move the library and export the workflow to another subsite (though on the same web site/collection).  I followed these how-tos:
    http://msdn.microsoft.com/en-us/library/office/jj819316%28v=office.15%29.aspx
    http://technet.microsoft.com/en-us/library/ee428301%28v=office.15%29.aspx
    Anyway, I've stripped all actions from the workflow and only have an Assign Task, but get this below:
    An unhandled exception occurred during the execution of the workflow instance. Exception details: System.ArgumentException: ContentTypeId at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance
    instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
    To troubleshoot, I removed all library columns, removed then re-added the Custom Content type the New Document uses, and still the same error - with the workflow going into Suspended mode.
    I also tried the removal of the file from /Relationships%20List/allitems.aspx and de-activating then re-activating the SharePoint Publishing feature, also that didn't work.
    I've gone into ULS, but unable to find anything definitive, so not sure what to try next?
    Thank you,
    Chad

    Hi Chad,
    Glad to hear the issue is resolved. Content types could be used for multiple lists in SharePoint site at the same time.
    However, I'm not quite sure why you said the resolution is for a "bug". I read the article per your link:
    http://www.andrewconnell.com/blog/SP2013-Workflow-Custom-Task-Outcomes
    The article is showing how to create custom outcomes buttons in task forms. As I understand, the issue you encountered is that workflow migrated from the other site shows the suspended status.
    Please be more specific on the issue if assistance is needed. If this is the second question, I’d recommend you open another thread in the relevant forum and provide specific information about the issue. In order to avoid confusion and keep track of troubleshooting
    steps, we usually troubleshoot one issue per thread in order to find a resolution efficiently.
    Thanks for the understanding.
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • Cannot create process to handle workflow instance conversation

    <Nov 18, 2002 1:04:30 PM IST> <Error> <B2B> <000000> <<Process>
    Hi,
    Iam getting following error when iam trying to invoke
    subworkflow.
    can anyone help me in solving this problem.
    regards
    Ananth
    ERROR: Cannot cr
    eate process null.>
    <Nov 18, 2002 1:04:30 PM IST> <Error> <B2B> <000000> <<B2B-BPM-Plugin> ERROR:
    Cannot create process to handle workflow instance conversation
    com.bea.b2b.protocol.ProcessManager$CreateException: ERROR: Cannot create proces
    s null.

    Hi Ajaz,
    Error description is not detailed enough to provide the solution. You need to post the error message what you got in the server log files. This should contain specific details about the issue.
    Not sure but issue may be related to JVM settings. if it is so, server log file will provide the error description.

  • Custom Workflow generates a thousand of Workflow Instances and EREs

    Hi everyone,
    I developed a Custom Workflow that complete user attributes information when a user select a value from a drop down list. I tested this workflow with a Request MPR  with an Action Type "Create" and the workflow Works perfectly. But now, I
    have to use this workflow in an Action Type "Modify" , when I changed it, the workflow Works fine but generates  a thousand of Workflow Instances and in consequence a thousand of EREs.
    Can you help me please?
    Thanks in advance,

    Make sure that the change invoked by your workflow is not used as button to run another workflow - described scenario looks like you have created a loop.
    If you found my post helpful, please give it a Helpful vote. If it answered your question, remember to mark it as an Answer.

  • Error while creating concurrent workflow instances with dynamic participant

    Hi All,
    I have a workflow which has 3 interactive activites. The second interactive activity has requires approval of atleast 3 users to proceed. The participants are also not known in advance and are created dynamically by creating the directory session. The workflow is instantiated using an external trigger. The approval for interactive activities is also provided by an external trigger (API call).
    Now, there is a scenario where i have 1000 requests coming in to ALBPM and workflow instance should be created for each of them. But only one instance is created and for the rest i get the following exception. This also happens with just 2 requests. I also tried calling the API in a synchronized way but didnt help.
    Is anybody aware why is this error encountered anf how it can be resolved?
    java.lang.IllegalStateException: Cannot set the directory Connector Service while connector service is started
    at fuego.connector.CompositeConnectorService.setDirectoryConnectorService(CompositeConnectorService.java:97)
    at fuego.connector.CompositeConnectorService.restartDirectoryConnectorService(CompositeConnectorService.java:52)
    at fuego.directory.DirectoryConfigurationManager.loadDirectoryConfiguration(DirectoryConfigurationManager.java:265)
    at fuego.directory.DirectoryConfigurationManager.getDirectoryConfiguration(DirectoryConfigurationManager.java:217)
    at fuego.directory.DirectoryConfigurationManager.getDirectoryConfigType(DirectoryConfigurationManager.java:199)
    at fuego.directory.provider.Factory.getDirectoryFactory(Factory.java:214)
    at fuego.directory.Directory.fillPassport(Directory.java:122)
    at fuego.directory.DirectoryPassport.fillPassport(DirectoryPassport.java:274)

    Hi Dan,
    Thanks for replying and giving attention. I have the following scenario :-
    1. I am getting a list of identifiers(some number) from a third party application along with the users/participants who are liable to approve the workflow instance.
    2. I create a workflow instance using this identifier through PAPI using process service session and also create the user/participant through PAPI by using the following code. Please note that i dont create participant in ALBPM instead i do it programatically in java using the PAPI :-
    DirectorySession directorysession = null;
    if (userVO != null && userVO.getUserId() != null && !userVO.getUserId().trim().equals(""))
    +{+
    +     directorysession = this.createFDISession();+
    +     List<RoleAssignment> roleAssignmentList = new ArrayList<RoleAssignment>();+
    +     try {+
    DirOrganizationalRole[] dirOrganizationalRoleArray = DirOrganizationalRole.fetchAll(directorysession);
    for(int i=0; dirOrganizationalRoleArray!=null && i<dirOrganizationalRoleArray.length; i+) {+
    +DirOrganizationalRole role = dirOrganizationalRoleArray;+
    +}+
    int permissions = -1;
    permissions
    += 0 |+
    DirHumanParticipant.getPermissionValue("X") |
    DirHumanParticipant.getPermissionValue("R") |
    DirHumanParticipant.getPermissionValue("S") |
    DirHumanParticipant.getPermissionValue("A") |
    DirHumanParticipant.getPermissionValue("D") |
    DirHumanParticipant.getPermissionValue("E") |
    +0;+
    +String[] whichRoles = new String[]{+
    +"Approver",+
    +"Requestor",+
    +};+
    +DirHumanParticipant.RoleAssignment[] roleAssignments = new DirHumanParticipant.RoleAssignment[whichRoles.length];+
    for(int i=0; i<whichRoles.length; i+) {+
    +roleAssignments[i] = new DirHumanParticipant.RoleAssignment(whichRoles[i], permissions, DirOrganizationalRole.fetch(directorysession, whichRoles[i]).getIn());+
    +}+
    +     String organizationUnit = configuration.getProperty("ORGANIZATION_UNIT");//fuegoFileProperties.getProperty(BVIDConstants.FUEGO_CONNECTIVITY_KEY_ORGANIZATION_UNIT);+
    +     String newUserPwd = configuration.getProperty("FUEGO_FDI_NEW_USER_PASSWORD");//fuegoFileProperties.getProperty(BVIDConstants.FUEGO_CONNECTIVITY_KEY_FDI_PWD);+
    +     DirOrganizationalUnit orgUnit = DirOrganizationalUnit.fetch(directorysession,organizationUnit);+
    +     DirHumanParticipant user = DirHumanParticipant.create(directorysession, userVO.getUserId(), userVO.getFirstName(), userVO.getLastName(),+
    +                              userVO.getFirstName(), userVO.getEmail(), userVO.getPhone(), "",+
    +                              newUserPwd, orgUnit,roleAssignments, true);+
    +     user.update();+
    +     }+
    +     finally+
    +     {+
    +               log.info("diconnecting the directory session created for creating participant");+
    +               directorysession.disconnect();+
    +     }+
    +}+
    3. The workflow instance then waits at interactive activity to get the next trigger with the same identifier to move the workflow ahead.
    4. Now the case is that i can get 1000 such identifiers at a time in a file which i ll read for which i need to create 1000 workflow instances parallely. During this process i get the following exception : -
    java.lang.IllegalStateException: Cannot set the directory Connector Service while connector service is started
    at fuego.connector.CompositeConnectorService.setDirectoryConnectorService(CompositeConnectorService.java:97)
    at fuego.connector.CompositeConnectorService.restartDirectoryConnectorService(CompositeConnectorService.java:52)
    at fuego.directory.DirectoryConfigurationManager.loadDirectoryConfiguration(DirectoryConfigurationManager.java:265)
    at fuego.directory.DirectoryConfigurationManager.getDirectoryConfiguration(DirectoryConfigurationManager.java:217)
    at fuego.directory.DirectoryConfigurationManager.getDirectoryConfigType(DirectoryConfigurationManager.java:199)
    at fuego.directory.provider.Factory.getDirectoryFactory(Factory.java:214)
    at fuego.directory.Directory.fillPassport(Directory.java:122)
    at fuego.directory.DirectoryPassport.fillPassport(DirectoryPassport.java:274)
    Please let me know if you need any more information. awaiting your help
    Thanks,
    Anand

  • Change Workflow-Instance-Container values

    Hi Experts,
    I would like to ask you how to change a value in a container of a Workflow-"Instance".
    For e.g.:
    I have a workflow-instance which contains a (bor-) Object "Switchdocument". This switchdocument contains also a (Bor-) Object "serviceprovider". And I would like to change the value of the parameter of "serviceprovider".
    How is the relationship between the "father"-object and the "child"-object and where are the relationship saved?
    I know the table "sww_cont" and "sww_contob". But these tables are not enough, aren't?
    Because in the mentioned tables (sww_cont) I see the elements with their values of the container of the workflow-instance. I don't the elements with their values of the object (father-object) contained in the workflow-instance-container and also not the elements with their values of the object (child-object) in the father-object.
    or (explanation as a list)
    Workflow-Instance-Container:
    1.element
    2.element
    3. Switchdocument (object)  (father-object)
    3.1 element of switchdocument
    3.2 .....
    3.3 Serviceprovider (object) (child-object)
    3.3.1 element of serviceprovider  <--- here I would like to change the value
    I hope I explained the situation in a detail way
    I apologize if I don't use the right terms!
    If anyone has a hint or a way to get to the "child-object" I would be very thankfull.
    Thanks a lot for your answers in advance!!!
    with lovely regards.

    Hi all,
    at first I thank you all for your answers!!!
    As I understand the values are permanently saved in the subobjects. Like I said the subobject (Distributor) with the attribute, e.g. Serviceprovider in Own System = 'X' is contained in the Object Switchdocument.
    That means for me that I have to retrieve the attribute of the subobject via a method for the special instance and change it, e.g. to set it blank.
    I have forgotten to say that I am developing a report (se38) to change all attributes of workflow-instances with object/subobject.
    As I said above in a condition step it is asked whether a "serviceprovider is in own system". if yes (means = "X") then the process has another way. And I have to change the "X" to "blank", so the workflow goes always the, in my case, second way.
    For the next time, I will explain my problem in a more detail way
    Thanks again.
    with kind regards!

  • Any restrictions on # of Workflow / Instances that ALBPM can handle?

    Is there any restrictions on No of workflow/ instances that ALBPM 5.7 can handle in production. I'm not worrying about handling number of simultaneous request but actual number of workflow / instances it can handle in due course.
    Thanks,
    Bharat

    9 pages max

  • No Workflow Instance

    Hi,
    We are using a batch program to trigger workflows for appraisal. Initially we tried for 3 users and the workflows were triggered properly. Then we ran the program for chunks of 50 users and when I checked the Event Trace, it says "Receiver started correctly", but the RFC status says "User is locked. Please notify the person responsib". I cannot see any workflow instance for these users in SWI1. Now even when I run the workflow trigger program for one user the status says "User is locked. Please notify the person responsib". I checked the logged on user and it is not locked. What could be the error? Pls help
    Event trace details
    EVENT DATA:
    Event Instance ID    2419876
    Object Type          APPR_DOC
    Object Key           01DDB4883F197144F18C480015600EB0690000
    Event                START_TARGET_SETTING
    Event Creator        US SSOPER         SAP
    Creation Time        26.11.2008 12:01:54 UTC+8
    RECEIVER DATA
    Receiver Type        WS99800015
    Object Key
    Receiver FM          SWW_WI_CREATE_VIA_EVENT_IBF
    RFC Destination      WORKFLOW_LOCAL_800
    Check FM
    Receiver Type FM
    TRACE DATA
    Trace Date/Time      26.11.2008 12:01:54 UTC+8
    User Name            SSOPER         SAP
    Main Program         RHHAP_APP_DOCUMENT_ADMIN_PA
    Action               Receiver started correctly
    RFC Status           User is locked. Please notify the person responsib
    Regds
    Thiru

    Hi,
    the workflow background user is configured here as SSOPER SAP. This user is locked. Please correct this via transaction SU01.
    The configuration of the user and logical destination can also be maintained with transaction SWU3.
    Have fun,
       Florin

  • Parallel workflow with final Reviewer in 10.1.3

    Hi,
    I am looking how to implement the equivalent of Parallel workflow with final Reviewer (used in 10.1.2) in our 10.1.3 BPEL version.
    when i used Group Vote + Sigle Approver, it does not give me what i want ............. and how to access the subtasks from a given parent task?
    How to create a parent task with subtasks ???
    thanks
    BG.

    Hi Karl!
    I've the same problem! Did you find any solution for that problem ???
    Thanks,
    Nuno Sénica.

  • [q] change workflow instance id

    hI All,
    How can I change a WLI2.0 workflow ID after the workflow has started ?
    The workflow is initialized via the WLI2.0 queue with an XML. I then call a
    business operation
    that give me the value that I need to put in the workflow ID. How do I do
    that ?
    Thanxs,
    Ronen Yaari

    I have the same question, and I would like to be able to get to
    the actual "label" as opposed to setting up a new process
    variable. It is not accessible in the dialog box.
    Thanks
    John
    "Kara Moscoe" <[email protected]> wrote:
    When you say "workflow ID", do you mean the system-generated instance
    ID, or
    do you mean the template definition ID -- or "label" -- that you define
    in
    the Template Definition properties dialog? (There is some confusion around
    these, for which a CR has been opened.)
    If it's the latter, you should simply be able to specify a workflow variable
    name, and specify that variable as the return variable in the Perform
    Business Operation action for the business operation in question. If
    you
    want to manually intervene during a running workflow to change a variable
    value, you can also use the Update variables function in the Workflow
    Variables dialog box, accessed from the Workflow Instances dialog.
    Kara
    Ronen Yaari <[email protected]> wrote in message
    news:[email protected]..
    hI All,
    How can I change a WLI2.0 workflow ID after the workflow has started?
    The workflow is initialized via the WLI2.0 queue with an XML. I thencall
    a
    business operation
    that give me the value that I need to put in the workflow ID. How doI do
    that ?
    Thanxs,
    Ronen Yaari

  • Assigning a workflow instance ID

    Hi,
    I just want to know if it's possible to assign my own instance ID when instantiating
    a workflow.
    Thanks.

    I have the same question, and I would like to be able to get to
    the actual "label" as opposed to setting up a new process
    variable. It is not accessible in the dialog box.
    Thanks
    John
    "Kara Moscoe" <[email protected]> wrote:
    When you say "workflow ID", do you mean the system-generated instance
    ID, or
    do you mean the template definition ID -- or "label" -- that you define
    in
    the Template Definition properties dialog? (There is some confusion around
    these, for which a CR has been opened.)
    If it's the latter, you should simply be able to specify a workflow variable
    name, and specify that variable as the return variable in the Perform
    Business Operation action for the business operation in question. If
    you
    want to manually intervene during a running workflow to change a variable
    value, you can also use the Update variables function in the Workflow
    Variables dialog box, accessed from the Workflow Instances dialog.
    Kara
    Ronen Yaari <[email protected]> wrote in message
    news:[email protected]..
    hI All,
    How can I change a WLI2.0 workflow ID after the workflow has started?
    The workflow is initialized via the WLI2.0 queue with an XML. I thencall
    a
    business operation
    that give me the value that I need to put in the workflow ID. How doI do
    that ?
    Thanxs,
    Ronen Yaari

  • XML message with no matching workflow instance

    Hi all,
    I have a JMS application that sends XML messages to WLPI. I want to ask:
    1. what will happen to the XML message if it doesn't match any workflow instance?
    2. is there a way for the JMS application to know that the XML message didn't
    match any workflow instance?
    Any help would be greatly appreciated.
    Thanks!

    If the message doesn't match any template instance, then the message is sent to
    the WLI_FailedEvent queue. However, if the xml doesn't find a template because
    it failed the "condition" of any start node, then the message is consumed by that
    template -- but the message disappears. :-( I opened a ticket on that one because
    I thought that I should still be notified, but BEA confirmed that that is designed
    behavior. This is for WLI 7.0
    "Jo-Ann de Leon" <[email protected]> wrote:
    >
    Hi all,
    I have a JMS application that sends XML messages to WLPI. I want to ask:
    1. what will happen to the XML message if it doesn't match any workflow
    instance?
    2. is there a way for the JMS application to know that the XML message
    didn't
    match any workflow instance?
    Any help would be greatly appreciated.
    Thanks!

  • Can workflow instances be cleared automatically ?

    Hi..
    I am running a regression test on a WLI 7.0 sp2 environment using BPM
    workflows. I need to run a test of around 1000 iterations min. but at around
    500+ iterations, the WLI Instance table is full giving the error of 'Max
    extents reached'
    At this point, my testing needs to be stopped to remove the completed
    workflow instances manually using BPM studio. Is there any way using which I
    can remove the completed instances automatically from the WLI workflow
    instance table ?
    Thanks in advance
    Mandar

    -> click '''Firefox''' button and click '''Options''' (or Tools Menu -> Options)
    * '''Privacy''' panel -> '''History''' section -> ''under'' '''Firefox will:''' ''select'' '''"Use Custom Settings for History"''' -> REMOVE Checkmark from '''Permanent Private Browsing mode'''
    * place Checkmark on '''Clear History when Firefox Closes''' -> click '''Settings''' button ->place Checkmarks on items you don't want Firefox to remember when you close Firefox -> click OK
    * click OK on Options window
    Check and tell if its working.

  • Fm to fetch Resposible  Agent  for a perticular Workflow instance .

    Hi All,
    I need a FM  for the following req:
    I want Name of the agent , responsible for all workitem pending(Status :READY,STARTED) for a perticular Workflow instance.
    Input para : the Object key of the WF(must) .
    Thanks for yr help.
    Kakoli

    Hi Kakoli,
    Use the FM CRM_PARTNER_READ_OW to get the partners asssociated with a business transaction. This would give you the list of all partners including the responsible agent.
    Just pass the GUID, Ref Kind of the object and get the desired list.
    Select emp. responsible using partner function 00000014.
    For recipients of workitems use SAP_WAPI_WORKITEM_RECIPIENTS.
    Hope this helps!
    Regards,
    Saumya

Maybe you are looking for