Skip to main content
rajt0005
Known Participant
Jun 13, 2024 1:16 PM UTC
Question

trigger a process model using script task

Can we Trigger a Process Model from a Process Model  by running a!startProcess() from script task ? 

4 replies

stefanhelzle0001
Brainy
Jun 13, 2024 2:13 PM UTC

No. What do you try to achieve? Any reason to not use the "Start Process" smart service?

davidj137213
Brainy
Jun 13, 2024 3:21 PM UTC

You can do it with Start process smart service, as [mention:a11f77a729fb4db2af76b09948583328:e9ed411860ed4f2ba0265705b8793d05] said... or you can create an integration that calls a web Api (and the web api executes a!startprocess, and call the integration from the script task...

sriramk5349
Inspiring
Jun 14, 2024 8:22 AM UTC

Hi [mention:190a358f01ba46ab8c569b6353a5f5fa:e9ed411860ed4f2ba0265705b8793d05] ,

a!startprocess() is a function that can ne executed inside saveinto on an interface component or webApi.

As you want to start new process from process model, you can use subprocess or startprocess nodes. Or create an API and call that API inside an integration and use that integration in script task

Participating Frequently
Jul 8, 2024 7:49 AM UTC

Is there any specific reason behind using the startProcess function instead of the smart service?