Package org.activiti.workflow.simple.converter.json

Examples of org.activiti.workflow.simple.converter.json.SimpleWorkflowJsonConverter


 
  private static SimpleWorkflowJsonConverter converter;
 
  @BeforeClass
  public static void init() {
    converter = new SimpleWorkflowJsonConverter();
  }
View Full Code Here


  protected RepositoryService repositoryService;
 
  @RequestMapping(value="/simple-workflow", method = RequestMethod.POST, produces="application/json")
  public SimpleWorkflowSuccessResponse createWorkflow(@RequestBody String json) {
    // Convert json to simple workflow definition
    SimpleWorkflowJsonConverter jsonConverter = new SimpleWorkflowJsonConverter();
    WorkflowDefinition workflowDefinition = jsonConverter.readWorkflowDefinition(json.getBytes());
   
    WorkflowDefinitionConversionFactory conversionFactory = new WorkflowDefinitionConversionFactory();
    WorkflowDefinitionConversion conversion = conversionFactory.createWorkflowDefinitionConversion(workflowDefinition);
    conversion.convert();
   
View Full Code Here

TOP

Related Classes of org.activiti.workflow.simple.converter.json.SimpleWorkflowJsonConverter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.