Skip to main content
July 12, 2022
Question

Leveraging activity-chaining

  • July 12, 2022
  • 15 replies
  • 0 views

Hi everyone,

Hope everyone is doing well and safe.

Can any one help me with Leveraging activity-chaining with example.?

How can we pass data from one process to other process by using start process smart service?

Thank you all in advance!

Regards,

Kiran Sajjan

    15 replies

    stefanhelzle0001
    Brainy
    July 12, 2022

    In the start process smart service you create a dictionary of data to be passed to the process. https://docs.appian.com/suite/help/22.2/Start_Process_Smart_Service.html#configuration-options

    What do you want to know about chaining?

    July 12, 2022

    Hi Stefan,

    I created one PM, inside that configured start process smart  service with form and done activity chaining, but what ever value changes done in the start process smart service form not updating in the child process.

    stefanhelzle0001
    Brainy
    July 12, 2022

    I am not sure I understand what you are doing. Where do you configure a form? The start process smart service does not support any forms.

    harshitb6843
    July 12, 2022

    Start process smart service is used as an alternative for the Async Sub process. It also provides the flexibility to not create dependency on a process dependents/precedents rather it asynchronously starts a process model, hence also taking care of the load balancing. 

    If you want to open two forms, one after another, without falling out, you can use a sub-process synchronously and add activity chaining. 

    Chaining is used to run the chained nodes on a single engine. In a normal language, It helps you jump between two or more forms without falling out but increases the engine load. This is the reason why we have a limit of 50 for chained nodes. 

    July 13, 2022

    Hi Harishit,

    This is my PM with activity chaining, I configured form in the Start Process Smart service and I updating some data in start process smart service form and submitting and it will trigger one more PM. but, what ever the changes done in the start process smart service form was not updating in the child process.

    I hope you understand the issue by this 

    1.Parent Process Model

    2.Configured form in the Start Process Smart service.

    3.Child Process model

    stefanhelzle0001
    Brainy
    July 13, 2022

    You can only use forms as a start form in a process model and in user input tasks! Any other node type will ignore your configured form.

    I suggest to put a user input task just before the start process node.

    July 15, 2022

    Hi Kiran,

    If you mean how to get data output returned from the proces initiated via the start process smart service you have to use activity chaining in the child right from the first node. The parent will wait for the last chained node in the child to finish before the parent proceeds to the next node. This way the behavior of the start process smart service is kind of synchronize and you will be able to fetch the output of the child process in the node's that follow after the start process smart service node. the pv's of the child are returned in a array of pv's. To initiate the child process via start process smartservice in via a dictionary with the data regarding to the parameters of the child process to be started. If you don't chain the nodes in the child the pv's will be null if you fetch them in the next node because default behavior is async, so the next node in the parent will not get updated data in the child because it executed before the child was finished with updating the data.

    Regards,

    Erik