Skip to main content
Known Participant
Feb 10, 2023 7:21 AM UTC
Question

Any latest plugin or smart service to call subprocess dynamically

Any latest plugin or smart service to call subprocess dynamically ?

    15 replies

    harshitb6843
    Brainy
    Feb 10, 2023 7:24 AM UTC

    How about using startprocess smart service instead? 

    Known Participant
    Feb 10, 2023 7:29 AM UTC

    It is a asynchronous process . I need a synchronous call 

    harshitb6843
    Brainy
    Feb 10, 2023 7:33 AM UTC

    Then we are left with 2 options, that I know. 

    1. Create a sub process with all the variations and then call that as your dynamic process and pass the required inputs so the sub-proc can understand which one to trigger. 
    2. To still use startProcess and add a condition after it that checks a variable of the startProcess and triggers the rest of the nodes when the condition is met. (making it artificially synchronous )
    abhayd3663
    Brainy
    Feb 10, 2023 8:16 PM UTC

    Create the single sub-process and have the dynamic conditions inside your sub-process to spawn different flow or take actions according to the condition.

    stefanhelzle0001
    Brainy
    Feb 11, 2023 8:39 AM UTC

    Why not call this process async as the last node. Then make that started process call the next process model. In case you need that dynamic, you can pass a variable holding a reference to the next to-be started model.

    davidj137213
    Brainy
    Feb 7, 2024 8:22 AM UTC

    IN previous Appian versions, there was an smart service that allows this operation, passing the uuid of the process as a parameter.

    Why was this feature removed? Was it replaced with a different smart service ?

    stefanhelzle0001
    Brainy
    Feb 7, 2024 9:13 AM UTC

    I do not know of a replacement, but you can use the Start Process smart service to start a process model by its ID. Use the content tools plugin function getprocessmodeldetailsbyuuid() to get the ID for a UUID.