Exemplo n.º 1
0
 public static ProcessDefinitionRef processDefinition(Process process) {
   long version = 0;
   try {
     version = new Long(process.getVersion());
   } catch (NumberFormatException e) {
     // Do nothing, keep version 0
   }
   ProcessDefinitionRef result =
       new ProcessDefinitionRef(process.getId(), process.getName(), version);
   result.setPackageName(process.getPackageName());
   result.setDeploymentId("N/A");
   return result;
 }