Scenario:- If you want to run some logic in workflow at particular we can use WorkflowAutomatictask
Step1:- create a class
Code:-
class CustomWorkflowAutomatedEvnentHandler implements WorkflowElementExecutionEventHandler
{
public void execute(WorkflowElementEventArgs _workflowElementEventArgs)
{
WorkflowContext workflowContext = _workflowElementEventArgs.parmWorkflowContext();
RecId recid = workflowContext.parmRecId();
EmployeeTable emptable;
select * from emptable where emptable.RecId == recid;
info(strFmt("%1",emptable.EmployeeId));
}
}
Step2:- Add Workflowautomatictask and give properties as shown in below
Step3:-In the supported elements add this automatic task and give type as automatictask.
Step4:-Open frontend and drag this automatictask to run some logic as shown in below
Thankyou!!
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)

.png)
.png)