Leveraging activity-chaining

Certified Associate Developer

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

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Associate Developer

    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 

Reply
  • 0
    Certified Associate Developer

    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 

Children
No Data