Samplecustomstep - bluesoft-rnd/aperte-workflow-core GitHub Wiki

This step implementation is part of Incident-process-plugin. This step is only demonstration of new way of creating automatic step, it has no attributes in modeler setup. All action is in SampleCustomStep inside plugin jar.

This step shows "Doing custom things ..." on console.

Example

Declaration in Java:

@AliasName(name = "SampleCustomStep")
public class SampleCustomStep implements ProcessToolProcessStep{
    @Override
    public String invoke(BpmStep bpmStep, Map<String, String> params) throws Exception {
        ProcessInstance processInstance = bpmStep.getProcessInstance();
        ProcessToolContext ctx = ProcessToolContext.Util.getThreadProcessToolContext();

		System.out.println("Doing custom things ...");
		
        //Here you can perform automatic step operations
        
        return STATUS_OK;
    }
}