提交 ff49ce4f 编写于 作者: J Joram Barrez

Added category support to simple workflow definition

上级 38b4fadc
......@@ -57,6 +57,10 @@ public class DefaultWorkflowDefinitionConversionListener implements WorkflowDefi
process.setId(generateProcessId(workflowDefinition));
process.setName(workflowDefinition.getName());
process.setDocumentation(workflowDefinition.getDescription());
if (workflowDefinition.getCategory() != null) {
conversion.getBpmnModel().setTargetNamespace(workflowDefinition.getCategory());
}
conversion.setProcess(process);
......
......@@ -59,6 +59,7 @@ public class WorkflowDefinition extends AbstractStepDefinitionContainer<Workflow
protected String key;
protected String name;
protected String description;
protected String category;
protected FormDefinition startFormDefinition;
protected ParallelStepsDefinition currentParallelStepsDefinition;
protected ChoiceStepsDefinition currentChoiceStepsDefinition;
......@@ -117,7 +118,20 @@ public class WorkflowDefinition extends AbstractStepDefinitionContainer<Workflow
return this;
}
@JsonSerialize(include=Inclusion.NON_EMPTY)
public String getCategory() {
return category;
}
public void setCategory(String category) {
this.category = category;
}
public WorkflowDefinition category(String category) {
setCategory(category);
return this;
}
@JsonSerialize(include=Inclusion.NON_EMPTY)
public Map<String, Object> getParameters() {
return parameters;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册