Skip to main content
olalekana0448
April 28, 2021
Question

Script Task

  • April 28, 2021
  • 1 reply
  • 0 views

Can anyone help me on how to use Script Task to capture process initiator,  set current date/time, and set a status for the process ?

I will also like to know how I can make a process name dynamic. Thank you

    1 reply

    csteward
    April 28, 2021

    Hi, first I would recommend reviewing the documentation on Configuring Script Tasks and Process Model Properties - as well as the Process Modeling Tutorial.  There is a plethora of other fantastic documentation available as well, always great to review especially if you are new to Appian.

    Otherwise, within Process Model Properties, the Process Display Name is expressionable - we rarely have a static name here, often including a unique "Process Number" value. 

    Process initiator can be retrieved with "=pp!initiator", current datetime can be retrieved with "=now()".  These can be used in the script task's Node Outputs to update process variables / CDTs as needed.  Process Status is typically set with text values as "Active", "Completed", "Cancelled", etc.