Validates the input is not null and loads the full ProcessActivity entity if exits.
Validates the ProcessActivity is in Canceled or Skipped state. If not, throws an exception.
Validates the ProcessActivity if there is checklist associated. If it is, throws an exception.
Validates the ProcessActivityDefinition of the ProcessActivity, if the ProcessActivityDefinition has been removed from the current flow, then throw an error.
Validates the Condition Expression of ProcessActivityDefinition. If the context of the ConditionExpression not meet, throws an exception.
If the ProcessActivity is terminated, then unterminate the ProcessActivity.
Sets the system state of the Process Activity to Open if it's system state isn't Open.
Returns the updated Process Activity in the output.