A form step is completed when you have finished all the form fields and click the Complete button under the form. That also applies to routing steps, where you select your decision and click Complete.
You can edit a completed step as long as the workflow instance is still in progress. However, if conditional steps follow, and they have already been completed, the updates to the form step won’t affect the completed conditions.
Those steps do not need your input and are completed automatically. If an automated step produces an error, the workflow technical lead is notified by email and can update and restart the step.
{"step_id":"ACTIVE_STEP_ID","actions":[{"action_id":"FORM_FIELD_1_ID","input_object":{"action":"return","comment":"comment_text","label":"UI_button_label",//leave as "" if there is no label change"returnToStep":"STEP_TO_RETURN_TO_ID"}}]}
{"step_id":"ACTIVE_STEP_ID","actions":[{"action_id":"FORM_FIELD_1_ID","input_object":{"action":"skip_forward","comment":"comment_text","label":"UI_button_label",//leave as "" if there is no label change"returnToStep":"STEP_TO_SKIP_TO_ID"}}]}
Note that when an instance is stopped using routing, the complete step endpoint response will contain aborted_time instead of completed_time.
{"step_id":"ACTIVE_STEP_ID","actions":[{"action_id":"FORM_FIELD_1_ID","input_object":{"action":"decline","comment":"comment_text","label":"UI_button_label",//leave as "" if there is no label change"returnToStep":-2}}]}
{"step_id":"ACTIVE_STEP_ID","actions":[{"action_id":"FORM_FIELD_1_ID","input_object":{"action":"complete","comment":"comment_text","label":"UI_button_label",//leave as "" if there is no label change"returnToStep":-1}}]}
Note that when the provided values are numbers (like the values in column 2 of the above examples), they don’t need to be escaped (\"\"). For an empty field, escape it with no values provided.
Real-life call example
1: These will be header names for the 3 columns we’re creating. This will be our first row. Note: If you don’t want to create a header with specific names, go to the table configuration and clear the Set first row as header option. Then your header will get default names.
2: These values will appear in the 2nd row in the respective columns.
To write a complete step request when some input form fields are conditional, you need to include all the fields in the request body, regardless of whether they are conditional. For conditional fields, simply provide empty values.