You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add feature to write code in main workflow block and in each steps #212
name: Name of the workflowcode: <% set var_a = 23 %>steps:
- name: Title of the stepuses: fetchvariables:
numberOfusers: <% var_a %>code: <%# this block runs after the execution of this step done# this will display the content in pretty format when --debug enabled (default)debug('_steps.0._response')# setting a variable in local variable scopeset var_s = length('_steps.0._response')%>
- ...
changed the title [-]Add debugging in workflow steps and overall workflow[/-][+]Add feature to write `code` in main workflow block and in each steps[/+]on Dec 30, 2024
This can help debug before and after executions; also adds flexibility to alter variables and data before and after execution
This adds more complexity and welcomes nasty codes
eg:
name: Name of the workflowsteps:
- name: Title of the stepuses: fetchvariables:
numberOfusers: <% var_a %>before: <%# this block runs after the execution of this step done# this will display the content in pretty format when --debug enabled (default)debug('_steps.0._response')# setting a variable in local variable scopeset var_s = length('_steps.0._response')%>after: <%# this block runs after the execution of this step done# this will display the content in pretty format when --debug enabled (default)debug('_steps.0._response')# setting a variable in local variable scopeset var_s = length('_steps.0._response')%>
Activity
[-]Debug or logging back-end[/-][+]Add debugging in workflow steps and overall workflow[/+][-]Add debugging in workflow steps and overall workflow[/-][+]Add feature to write `code` in main workflow block and in each steps[/+]0hsn commentedon Dec 31, 2024
Another idea
beforeandafterblock for each stepcodeblockCaveats
eg: