February 2019
Intermediate to advanced
446 pages
10h 55m
English
Now, you can define WorkflowDef and set its properties, such as Name, version, and others, shown as follows:
WorkflowDef def = new WorkflowDef();def.setName(Constants.SAMPLE_WF);def.setVersion(1);def.setSchemaVersion(2);List<String> wfInput = new ArrayList<>(1);wfInput.add(Constants.EVENT);def.setInputParameters(wfInput);// Create WorkflowTask and add it to workflow// t0 and t1 code is shown in next code snippetdef.getTasks().add(t0);def.getTasks().add(t1);Map<String, Object> output = new HashMap<>(1);output.put("last_task_Id", "${task_http.output..body}");def.setOutputParameters(output);
The properties of WorkflowDef are as follows:
|
Field |
Description |
Notes |
|
name |
Name of the workflow |
|
Read now
Unlock full access