Script Task Vs User Input Task

difference between script task and user input task? And why we use? And when we use?

  Discussion posts and replies are publicly visible

Parents Reply
  • Yup, it's a little confusing when you first start. So, you use the node Inputs to define a variable that is local to the node i.e. an Activity Class variable. You can set this value to the value of a process variable (which is in effect passing by value - i.e. a copy of the value in the process variable). Or you can set the value using an expression (e.g. you could call a rule and have that rule do anything you want). Now that you have a value in your Activity Class variable you could just pass it out again to the same (or a different ) process variable, using the 'Save into' setting. In effect, you can get data into and out of your script task without ever leaving the Inputs tab.

    You also have the option of conducting what you might think of as "post processing" on the value of your activity class variable, which you can do in the Outputs tab. You can reference the Activity Class variables in the Outputs tab and do whatever you want before writing the value back to a process variable.

    Or you do not have to use any Inputs if they're not required for the step you're configuring. You could just run a rule in the Outputs tab and write the output to a process variable.

Children
No Data