Implementing simultaneous execution of same activity instances

We need to run instances of a particular activity/child process, in parallel. The number of instances has to be dynamic (based on a query from database or the like)

If you do the file-write operations in a child process, there is a way to configure a child process (from the parent) to run asynchronously.
You could put the child process in a for-each loop, iterate over the rows from your query, and basically launch the child process to write.  The loop would repeat for the next row without waiting for the chile process write operations to complete.
The drawback to this is that, if you have something downstream in the workflow that needs to start running after *all* parallel operations are complete, you have to do some other stuff to indicate "start all operations" and "all operations complete".  However, it's an easy way to have these child processes running in parallel, and having a dynamic number of them at a time.

Similar Messages

  • 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

  • Can I open these two database simultaneously on a same system?

    I have cloned the current database using Oracle EM Clone tool on a same WinXP system. Can I open these two database simultaneously on a same system? If can, How can Iogin to another database(cloned database)?

    You should be able to start both databases if you did the cloning correctly.
    EM use RMAN duplicate to clone database. It's basically created a AUXILIARY database and duplicate target database into it.
    You must enter destination global name and instance name before proceed. What's instance name you entered?
    set your ORACLE_SID to that instance name and login.

  • Can I ensure a single thread of execution on an activity ?

    Hi,
    11.1.1.7 BPM
    To go with my list of threading/correlating/synchronizing questions how can I ensure that an activity will start and complete without another thread/instance running the same activity at the same time ?
    cheers
    Tony

    Not exactly.
    You will find yourself nudging the page up or down a bit. Earlier versions of iOS Pages allowed "full page view" but that really wasn't full page either. You can squeeze the view to fit, but as soon as you release it, the document springs back to normal size - it is only about a line off from what you are looking for.
    An alternative would be to view a Pages Document as a PDF and view the PDF in an app such as GoodReader - there you can see both the top and bottom edges of each page. There are many other PDF viewers available in the App Store.
    Hope this helps.

  • Simultaneous execution of JREs

    Good morning,
    I am trying to see under which conditions do I receive the error message "Java was started but returned exit code=1".
    Sometimes I receive this error code when trying to execute more than one Java virtual machine. Also this happens when trying to set the Xmx, Xms and MaxPERMsize parameters to a GB-order size.
    Can somebody tell me where could I find which conditions are evaluated by the virtual machine in order to launch such error messages? So I could know under which circumstances could my java software be executed over Windows 32 and 64 bits.
    Or at least, does somebody know how could I contact the Java personell and ask them directly (by means of money, of course).
    Kind regards.

    Thanks for the response.  I implemented the notifiers and it seems to have partially fixed the problem.  Now when I run the VI it updates the amplitude on every iteration of the for loop.  The only problem that I have now is that the while loop that houses the "simulate signal" block stops execution immediately after the amplitude has been updated.  My goal is to get the signal to continuously run while updating the amplitude in real time so that I can watch the waveform change.  Currently it will update the amplitude, then freeze the waveform with the updated amplitude and subsequently wait for a new amplitude to be passed before updating again.  I'm assuming this occurs because of the "wait on notification" block that is used to receive the notification from the for loop.  Is there any way to either modify these notifiers to allow for a real time passage of data and simultaneous execution of the while loop, or is there some other type of data passing method that would work better to achieve that end?  I have attached my updated VI as a VI snippet like you suggested.  Thanks for the help!
    Attachments:
    Amplitude Stepping.png ‏99 KB

  • Calendar Activity instance using calendar cell background color

    Hi ,
    We have a requirement to show activity instance belong to a certain provider in calendar using the calendar cell background color, instead of the color of activity. Is this possible? If so, how to implement it?
    I checked the calendar skin keys here:
    http://jdevadf.oracle.com/adf-richclient-demo/faces/components/skinningKeys/calendar.jspx
    but only find some keys related to activity like "af|calendar::month-time-activity", "af|calendar::all-day-activity" and "af|calendar::month-time-activity". These highlight the activity with color, but not the whole calendar cell.
    I saw there is a skin key called "af|calendar::month-grid-cell" which set the background color of the calendar cells for the month. This is similar to what I am looking for, but I would like the cell's background color for the cells of the activity instance only, not all the cells in the month.
    Any ideas?
    Thanks
    -Mina

    Hi Mina,
    There is a way to highlight cells corresponding to activity by using skinning, but you have to set the backgroud color property: af|calendar::month-time-activity{ background-color: Blue; }
    Georgiana :)

  • Can multiple LabVIEW programs simultaneously access the same NI-DAQmx hardware?

    I am developing a test station system that, in essence, runs several
    seperate LabVIEW programs simultaneously on the same computer, each
    controlling a different set of I/O channels on one shared set of NI
    DAQ hardware (analog and digital I/O PCI boards with external signal
    conditioning).
    I have already gotten a system like this running almost flawlessly
    using LabVIEW 6.1, NI-DAQmx 7.1 with traditional channels, and older
    E-series DAQ hardware. So long as two programs do not try to write to
    the same output channel simultaneously, everything works exactly as
    expected--I can even read from the same (named) channel simultaneously
    from more than one program. The only issue I have had is that if
    one
    of the compiled applications is closed (not just stopped, but closed)
    while others are still running, Windows XP (SP1) will bluescreen on a
    driver error. This is undesireable, but acceptable (though if there's
    a fix/workaround, I'd love to hear it).
    I am now building a similar system using mostly the same software
    (with an upgrade to LabVIEW 7.1), and I've noticed that the new
    M-series DAQ hardware seems to offer much more bang for the buck than
    old E-series hardware and its kin.
    My question is this: It appears that I/O on M-series hardware must be
    performed with new mx channels, with traditional channels not being an
    option. I am therefore wondering if I will be able to do this kind of
    multiple simultaneous access with mx channels, or if I must purchase
    the classic hardware and use traditional channels for this somewhat
    unorthodox application.
    (Incidentally, the multiple simultaneous program thing is a
    requirement for this system, as it is the only clean way to run
    multiple
    identical copies of the same complete program that only
    operate on different I/O channels, and re-doing the program from
    scratch is not an option.)

    Dear Anonymous,
    Thank you for contacting National Instruments.
    To address your question, I don't know if multiple simultaneous access with mx channels is possible, but I do not see why it wouldn't be. The best way to find out would be to test it. I don't have your program or hardware, so I'm pointing you to some Compatibility VIs. These are VIs that look exactly like Traditional DAQ VIs except that underneath they call the DAQmx driver instead of the Traditional DAQ driver. If your device works when you substitute these Compatibility VIs in for the Traditional DAQ VIs, then you'll know the M Series boards will work for you.
    Here is the link for information about the Compatibility VIs:
    http://digital.ni.com/softlib.nsf/954feaeea92d90918625674b00658b
    83/9d67f671bcc6850586256e630059308b?OpenDocument
    Let me know if you have any further questions or if this does not resolve your issue.
    Thanks again and have a great day!
    Chad AE
    Applications Engineer - National Instruments

  • Viewing multiple PDFs in same Reader instance

    Has Reader 9 lost the ability to view multiple PDF documents within the same instance? After a system crash and various upgrades, I am no longer able to make this work... and cannot find the appropriate Preference. Its bugging me.
    Any thoughts?
    Ken

    When I open a single document it appears to be simulating MDI (e.g. there is an "X" icon in the upper right corner of the document). But there are no controls to Restore Down or Minimize. Selecting File / Open from the menu opens another instance of Reader (not a second document in the same Reader instance). Yes, I can open two instances of 9.0 and tile... but valuable screen real estate is lost because there are two menus and two icon bars.
    I hate to downgrade to 8.0, but that looks like my best option.

  • 2 apps on the same Weblogic instance

    I have 2 unrelated apps. I need to add these to the same Weblogic instance. We
    run Weblogic 6.1 sp3 on Red Hat Linux 7.2. How do I do this, if I don't want any
    down time on one app, when I bring down the other. Can they exist on the same
    instance and be stopped and started without bringing down the instance?

    What kind of apps are we talkin' here?
    You mean .war,.ear or .jar etc...
    Give us more details.
    Kumar
    Vidya wrote:
    I have 2 unrelated apps. I need to add these to the same Weblogic instance. We
    run Weblogic 6.1 sp3 on Red Hat Linux 7.2. How do I do this, if I don't want any
    down time on one app, when I bring down the other. Can they exist on the same
    instance and be stopped and started without bringing down the instance?

  • Is it possible to have source and target schema in the same DB instance ?

    Hi All,
    I'm using Oracle 11gR1.
    I have switched source locations from other server to the one with OWB.
    During deploy I get VLD-3064 and I can't deploy mapping because of many 'table or view does not exist' warnings.
    Is it possible to have source and target schemas in the same instance ??
    How to do it ?
    Regards,
    Martin

    Hi Jörg,
    Thanks for your help and quick answer.
    I'd like to clarify a little your answer :
    1. Are the any special privilages I need to set ? Currently I have only 'RESOURCE' and 'CONNECT' (I think I didn't have to add any other privs when that schema was located on other instance...)
    2. Also VLD-3064 states that : 'Owning and referenced location of this connector are on the same database instance. Unless explicitly referenced in configuration settings no generated code will use the dataabase link resulting from deployment of this connector'. Does it mean I have to put something in configuration ?
    Thanks,
    Martin

  • Ref: Multiple databases on same ASM Instance

    I am having an existing two Node RAC using ASM FIle System. I want to add one more database to the existing RAC using the same ASM diskgroup. We can create multiple databases using the same ASM instance?

    You need one ASM instance per server. You can have multiple instances resp databases running on that server accessing the same diskgroup made available on the server by the ASM instance.
    Kind regards
    Uwe Hesse
    http://uhesse.wordpress.com

  • Is there any successful implementation of Miller Heiman SAM in Siebel?

    One of my customer is asking whether there is any experience with implementing the Miller Heiman SAM (http://www.millerheiman.com/our_products/sales_access_manager/index.
    html) into SIEBEL 7.8? Is there a reference/partner with experience?
    Can this be implemented at all??
    Thanks

    Hi Ishan,
    From your question, it seems like you want to evaluate SolMan's success for the following Scenario/Sub-Scenarios:
    (1) Solution Monitoring
            - System Monitoring
            - Business Process Monitoring (BPM)
    If this is the case, one of the places I can suggest you to consult is Best Practice document for BPM, based on whatever satellite systems are involved.
    A few documents can be found at:
    https://websmp203.sap-ag.de/~form/sapnet?_HIER_KEY=701100035871000517057&_FRAME=CONTAINER
    Best regards,
    Srini

  • How to find out all active instances in a syste

    How to find out all active instances in a system

    Go to your basis team and ask them, as far as i know there is no other way then suggested in the other answer, but that is not a complete picture, And that is as designed, why should one want to be able to find out, the basis consultant will tell you!

  • Adding 2 different embedded connectors in same TREX instance

    Hi all,
    We  have tREX installed with installation type ESH  and version is 7.10 58 .
    We have PLM connectors indexed as Embedded connectors from ECC and now we have request to add  SRM connectors also  in to same TREX instance.
    ECC - PLM connector, SRM - SRM connector connecting to same TERX instance.
    does the above scenario is possible can TREX handles 2 different Embedded connectors of 2 SAP SID?
    Is it recommended to add  business objects thru SES_ADMIN  in TREX which is installed of type ESH?
    Please suggest.
    Thanks,
    Subhash.G

    thanks for reply.
    Does it mean a single TREX SID distubuted  can serve multiple Embedded connectors from Mutiple SAP SID..?
    Please confirm if the installation type is ESH , can we connect both embedded connectors and also configure search from SES_ADMIN also?
    If we have multiple connectors with different connectors types like one is Embedded and another is SES_ADMIN [free text} does it corrupt the indexes ?
    Please suggest..
    Thanks,
    Subhash.G

  • Want to start new session in same browser instance when user ReTypes URL

    HI All,
    I am facing one problem in my sturts application.Its giving me problem that values in the session persists in the my JSP form.
    I entered Userid and password and logged in and gone forward now when I retype Url and give request in same Browser instance a values in my JSP form are visible to me.
    actualy this should be considered as new request and JSP form should appear blank.

    I think Struts is not JSF ....

Maybe you are looking for