public Collection<VariableSummary> getVariablesCurrentState( long processInstanceId, String processId) { Map<String, String> properties = new HashMap<String, String>(bpmn2Service.getProcessData(processId)); return VariableHelper.adaptCollection( dataService.getVariablesCurrentState(processInstanceId), properties, processInstanceId); }
@Test public void hello() throws IOException { knolwedgeService.createDomain(); String theString = "org.jbpm.writedocument"; Collection<TaskDef> processTasks = bpmn2Service.getAllTasksDef(theString); assertEquals(3, processTasks.size()); Map<String, String> processData = bpmn2Service.getProcessData(theString); assertEquals(3, processData.keySet().size()); Map<String, String> taskInputMappings = bpmn2Service.getTaskInputMappings(theString, "Write a Document"); assertEquals(3, taskInputMappings.keySet().size()); Map<String, String> taskOutputMappings = bpmn2Service.getTaskOutputMappings(theString, "Write a Document"); assertEquals(1, taskOutputMappings.keySet().size()); }
public Map<String, String> getRequiredInputData(String processId) { return bpmn2Service.getProcessData(processId); }