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

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

  • 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

  • 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

  • Many instances of Essbase

    There are many instances of Essbase running in the server. Our server hangs very often because of this. Is there any way to avoid this? We use Essbase 6 in Linux 2.4.9-e.38enterprise version.
    hyperion 22384 1 0 Mar31 ? 00:00:00 /home/hyperion/essbase/bin/ESSBASE ********* -quicklogin -b
    hyperion 22389 22384 0 Mar31 ? 00:00:00 /home/hyperion/essbase/bin/ESSBASE ********* -quicklogin -b
    hyperion 22390 22389 0 Mar31 ? 00:00:00 /home/hyperion/essbase/bin/ESSBASE ********* -quicklogin -b
    hyperion 22391 22389 0 Mar31 ? 00:00:00 /home/hyperion/essbase/bin/ESSBASE ********* -quicklogin -b
    hyperion 22392 22389 0 Mar31 ? 00:00:00 /home/hyperion/essbase/bin/ESSBASE ********* -quicklogin -b
    hyperion 22393 22389 0 Mar31 ? 00:00:00 /home/hyperion/essbase/bin/ESSBASE ********* -quicklogin -b
    hyperion 22394 22389 0 Mar31 ? 00:00:00 /home/hyperion/essbase/bin/ESSBASE ********* -quicklogin -b
    hyperion 22395 22389 0 Mar31 ? 00:00:00 /home/hyperion/essbase/bin/ESSBASE ********* -quicklogin -b
    hyperion 22396 22389 0 Mar31 ? 00:00:00 /home/hyperion/essbase/bin/ESSBASE ********* -quicklogin -b
    hyperion 22397 22389 0 Mar31 ? 00:00:00 /home/hyperion/essbase/bin/ESSBASE ********* -quicklogin -b
    hyperion 22398 22389 0 Mar31 ? 00:00:00 /home/hyperion/essbase/bin/ESSBASE ********* -quicklogin -b
    hyperion 22399 22389 0 Mar31 ? 00:00:00 /home/hyperion/essbase/bin/ESSBASE ********* -quicklogin -b
    hyperion 22400 22389 0 Mar31 ? 00:00:01 /home/hyperion/essbase/bin/ESSBASE ********* -quicklogin -b
    hyperion 22401 22389 0 Mar31 ? 00:00:01 /home/hyperion/essbase/bin/ESSBASE ********* -quicklogin -b
    hyperion 22402 22389 0 Mar31 ? 00:00:00 /home/hyperion/essbase/bin/ESSBASE ********* -quicklogin -b
    hyperion 22403 22389 0 Mar31 ? 00:00:00 /home/hyperion/essbase/bin/ESSBASE ********* -quicklogin -b
    hyperion 22404 22389 0 Mar31 ? 00:00:00 /home/hyperion/essbase/bin/ESSBASE ********* -quicklogin -b
    hyperion 22405 22389 0 Mar31 ? 00:00:00 /home/hyperion/essbase/bin/ESSBASE ********* -quicklogin -b

    I believe each instance is an Essbase Application process.
    You can start and stop Essbase Applications if you want to remove the from the process kernel. If you do not have these many applications in your system then it is probably orphaned processes.
    I have seen this happen with version 6, when Essbase is running a large process like a calc script through the front end and the frond end process is cancelled, like ending Application Manager. Then the user tries to connect and start the application again. This spawns a new process that waits behind the original.
    You should shutdown Essbase daemons. And kill all these processes and start over.
    If Essbase runs a large process it will theoretically continue running until its finished. Unfortunately you can create a process that runs for days.
    Brian Chow

  • Cannot start second instance of collector

    Hi everyone
    I've got a strange one here. A workstation I noticed that wasn't scanned since 6 months (WinXP SP3, ZCM 10.3.1).
    When I check the ZAA windows, it says Last Scanned i.e. today, Last Upload June 2.
    I've found several errors 'Cannot start second instance of collector' in the local colw32.log.
    However, the workstation gets rebooted daily and I can't find another instance of colw32.exe running in TaskManager.
    How can I resolve this? I can't tell how many clients are affected. However, I've got almost 300 clients (15%) that haven't been scanned in the last 180 days...
    Thanks
    Roland

    Originally Posted by rpfenninger
    Hi everyone
    I've got a strange one here. A workstation I noticed that wasn't scanned since 6 months (WinXP SP3, ZCM 10.3.1).
    When I check the ZAA windows, it says Last Scanned i.e. today, Last Upload June 2.
    I've found several errors 'Cannot start second instance of collector' in the local colw32.log.
    However, the workstation gets rebooted daily and I can't find another instance of colw32.exe running in TaskManager.
    How can I resolve this? I can't tell how many clients are affected. However, I've got almost 300 clients (15%) that haven't been scanned in the last 180 days...
    Thanks
    Roland
    We had similar issue, inventory was never uploaded to server. To solve it we had to manually do a "Scan Now" from Zenworks agent -> Show properties -> Inventory -> Scan Now, after we did that once on the workstation then scheduled scans started to upload again.
    I guess it would probably also work if you do a Inventory scan from quick tasks in ZCC but I never tried it so I'm not sure.
    Thomas

  • 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

  • How many instances of the CR Runtime can i have?

    One of my customers has been using Crystal Reports for well over ten years.  They currently have a .Net windows service that runs reports and emails the output as a PDF to their clients.
    This has worked successfully for many years and currently they are running CR XI.
    The number of reports/clients has increased lately and they can no longer produced all the reports in the required timescales.
    Therefore they would like to start a second .Net windows service to take on some of the workload.   Both services would run during the evening, producing the PDF's and then  emailing them.
    However my question is whether it is possible to run two reports simultaneously on the same machine.  Is the .Net runtime capable of handling this?
    We intend to upgrade to CR 2008.
    Many thanks

    Hi Richard
    As far as I know, you could have as many instances of your programm/service as you want.
    There is a 75 Job limit  in the CR Engine: http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/f053713e-3e3d-2c10-2a81-f79259e54023?quicklink=index&overridelayout=true
    Look at thread [] for more information.
    Remember to close and Dispose the reportdocument after printing / generating the pdf .
    Jürgen.

  • 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

  • Starting multiple instances of Matlab in Mac OS X Tiger

    I am trying to start multiple instances of Matlab in Mac OS X 10.4, that is, there are several users in this machine, and they all need to use Matlab. Right now, only one user is able to do so, when a second user logs into his/her account and they start Matlab, it does not start. Actually, if one user has X11 open (not even Matlab) and another user tries to start Matlab it won't start. I'm not sure if this is a license problem, an X11 problem, or a Matlab problem. To start matlab, I am using the StartMATLAB.app located in the Applications folder. Following are the details for the hardware:
    Model Name: Mac Pro
    Model Identifier:
    MacPro2,1
    Processor Name: Quad-Core Intel Xeon
    Processor Speed: 3 GHz
    Number Of Processors: 2
    Total Number Of Cores: 8
    L2 Cache (per processor): 8 MB
    Memory: 8 GB
    Bus Speed: 1.33 GHz
    Boot ROM Version: MP21.007F.B06
    SMC Version: 1.15f3
    Serial Number: 157***UPZ
    Some information about Mac OS:
    System Version: Mac OS X 10.4.11 (8S2167)
    Kernel Version: Darwin 8.11.1
    The version of X11 is:
    X11 1.1.3 - XFree86 4.4.0
    I appreciate your help.
    <Edited by Moderator>

    See this article: An easy way to run multiple instances of any program.
    I believe another alternative is to provide a separate copy of the application in the users own Home folder by placing it in the /Home/Applications/ folder. This may not work for all applications as some simply will not run multiple instances of itself.
    Licensing is of course a separate issue as each unique user may require a license, although many licenses only restrict use to one CPU at a time rather than multiple users on a one CPU.

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

  • How to trace/debug main workflow calling sub workflow.

    Guys,
    I am calling Sub workflow from MAIN workflow.
    I am able to trace till beginning of sub workflow, with the help of workflow log.
    But, is it possible to trace/debug the sub workflow as well(in single stretch).
    Please guide with t-codes & procedures(links).......
    Regrads.
    santosh.

    Hi Santosh,
    You should be able to see the technical log for the subflow as well - but perhaps that's not what you are asking.
    First, you should always be able to 'trace' your subflows by starting them directly via SWUS.  Then you will have the log to review.
    You can also set the workflow trace on via SWU9.
    Hope this helps,
    Sue

  • So many instances of siebmtshmw.exe

    Hi
    I installed Siebel 8.0 against Oracle 10g and IIS web server. When I start Siebel server, It starts too many instances of siebmtshmw.exe process that my machine just hangs.
    Has anybody faced similar problem before? What could be the solution for the same?
    Thanking You
    Kiran Thakkar

    Hi Kiran,
    For each component group you enable, a process Siebmtshmw.exe executes!
    So decide which components you need & only enable its responding groups, else it would require lot of system resources.
    Regards,
    Shalabhsneha

  • Not able to start out of the box approval workflow programmatically

    We have a requirement to start an out of the box workflow from a .NET web service.
    We are using the StartWorfklow method:
    wfManager.StartWorkflow(item, association, association.AssociationData
    we are getting the below error message at the above line of code: Attempted to perform an unauthorized operation.. Data: System.Collections.ListDictionaryInternal
    Then, we tried:
    SPSecurity.RunWithElevatedPrivileges(delegate()
            wfManager.StartWorkflow(item, association, association.AssociationData,
    SPWorkflowRunOptions.Synchronous);
    Now, the workflow got canceled automatically with "Failed on Start" status. In the "Workflow History", it is showing 2 records with "was canceled by System Account." & "failed to start" in the description
    column.
    Please advise.

    Hi Zhengyu,
    1. I've already done that:
    a) when "SPSecurity.RunWithElevatedPrivileges(delegate()"
    is used, there are no errors showing up and code gets executed. However, the workflow failed to start.
    b) When I don't use elevated privileges, the code is showing an error (Attempted to perform an unauthorized operation.. Data: System.Collections.ListDictionaryInternal) when
    it tries to start the workflow (StartWorkflow method).
    2. The workflow starts with no issues through UI. I tried it using "System Account" and another account.
    3. I tried also "Collect Feedback" workflow template. Same results...
    You can find the code below:
    public
    stringStartItemWorkflow(stringsitePath,
    stringlibraryName,
    stringfileName)
    stringreturnVal =
    String.Empty;
    stringwfName =
    "VPApprovalWF";
    SPUserTokentoken = GetSecurityToken(sitePath);
    try
    using(Microsoft.SharePoint.SPSiteportalSite
    = newMicrosoft.SharePoint.SPSite(sitePath,
    token))
    using(SPWebportalWeb
    = portalSite.OpenWeb())
                        portalWeb.AllowUnsafeUpdates =
    true;
    SPListlist = portalWeb.Lists[libraryName];
    SPQueryfileQuery =
    newSPQuery();
                        fileQuery.Query =
    String.Format("<Where><Contains><FieldRef
    Name='FileLeafRef' /><Value Type=\"User\">{0}</Value></Contains></Where>", fileName);
                        fileQuery.ViewAttributes =
    "Scope='RecursiveAll'";
    SPListItemCollectionlistItemCol = list.GetItems(fileQuery);
    SPWorkflowManagerwfManager = portalSite.WorkflowManager;
    SPWorkflowAssociationCollectionassociationCollection
    = list.WorkflowAssociations;
    if(listItemCol.Count > 0)
    foreach(SPListItemitem
    inlistItemCol)
    if(associationCollection.Count > 0)
    foreach(SPWorkflowAssociationassociation
    inassociationCollection)
    if(association.Name == wfName)
                                            item.Update();
                                            association.AutoStartChange
    =
    true;
                                            association.AutoStartCreate
    =
    false;
                                            association.AssociationData
    =
    String.Empty;
                                            StartWF(wfManager,
    item, association);
                                            returnVal +=
    "Workflow Started";
    break;
    else
                                    returnVal +=
    "No workflows are attached to the library.";
    else
                            returnVal +=
    "A file with the name provided doesn't exist";
                        portalWeb.AllowUnsafeUpdates =
    false;
    catch(Exceptionex)
                returnVal +=
    "Workflow not started, reason: "+
    String.Format("Source:
    {0}. Stack Trace: {1}. Inner Exception:{2}. Message: {3}. Data: {4}", ex.Source, ex.StackTrace, ex.InnerException, ex.Message, ex.Data);
    returnreturnVal;
    SPUserTokenGetSecurityToken(stringsitePath)
    SPUserTokentoken =
    null;
    SPSecurity.RunWithElevatedPrivileges(delegate()
                Microsoft.SharePoint.
    SPSiteportalSite =
    newMicrosoft.SharePoint.SPSite(sitePath);
                token = portalSite.RootWeb.EnsureUser(
    "DOMAIN\\ADMIN-USER").UserToken;
                portalSite.Dispose();
    returntoken;
    privatestaticvoidStartWF(SPWorkflowManagerwfManager,
    SPListItemitem,
    SPWorkflowAssociationassociation)
    SPSecurity.RunWithElevatedPrivileges(delegate()
                wfManager.StartWorkflow(item, association, association.AssociationData,
    SPWorkflowRunOptions.Synchronous);
    Thank you all for your help.
    Regards,

  • How many Instances can I install on one machine?

    Hi Folks,
    Do you know how many oracle instances I can install on my Win OS machine.
    I already have three different instances. Typically how many instances Oracle recommends to setup in one machine to ensure performance improvement?
    I use Oracle 9 and oracle10g both. In fact, Oracle9 in Solaris and oracle10g on win.
    Regards,
    Amir

    In general, it recommends one instance per server
    in a production environment, for a variety of
    reasons (maintainability, backup/recovery, easier to
    tune, better use of resources).If you have 100 productives databases, it is very probable that you won't be able to have one server per database.
    Again, it depends on your number of users, processors and ram... But if you 16G ram and 16 processors, you should well be able to able to have 20 databases with not too much activity.
    The number of 20 here means truely nothing. I admit. But recommending one instance per server is not ok.
    Many applications require to have a separate database. It is the double administration necessary, but it is better than the troubles generated when 2 software vendors are sharing the same db.
    For development, I have some systems with over 50 instances running with 16g ram and 8 cpus.

Maybe you are looking for

  • How to add page numbers (centred) at the foot of a page?

    Even this is confusing! I typed my question hit return and was told I couldn't post a blank message. How do I post my message? I simply want to know how to add a page number at the foot (centred) of a page. Oh! Great! Now I see, I should have known t

  • Writing from Stored Procedure directly into a file...

    Hi guys, I would like to write the results of a stored procedure into a file. Indeed, I am calling a Stored Procedure from a script and I would like to write the result of that procedure to a file and not a table. Thanks guys, Pipoca

  • Search in RoboHelp 8

    I migrated a project from RoboHelp 5 to RoboHelp 8 and now the search is not working.  I don't know where to start to check.  Thanks

  • Manged Server not able to start.. default policy provider was not found.

    Hi All, SOA suiite 11.1.1.1.3.0 I am able to start admin server successfully. and while starting Managed server I am getting below error. I am trying to start managed server in cmd promt. could anyone pls suggest me to resolve this?? ####<Jun 5, 2013

  • All my emails prior to 10/1/2011 have disappeared.

    All my emails prior to 11/1/2011 have disappeared from icloud.  They were backed up on timemachine but they have also disappeared. I am trying to move them off the icloud servers but need them restored so as to do so.  Apple customer service it seems