|
|
@ -108,7 +108,7 @@ public class ProcessDefinitionDemo { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// generate access token
|
|
|
|
// generate access token
|
|
|
|
String expireTime = DemoContants.Expire_Time; |
|
|
|
String expireTime = DemoConstants.Expire_Time; |
|
|
|
String token = EncryptionUtils.getMd5(1 + expireTime + System.currentTimeMillis()); |
|
|
|
String token = EncryptionUtils.getMd5(1 + expireTime + System.currentTimeMillis()); |
|
|
|
AccessToken accessToken = new AccessToken(); |
|
|
|
AccessToken accessToken = new AccessToken(); |
|
|
|
accessToken.setUserId(1); |
|
|
|
accessToken.setUserId(1); |
|
|
@ -345,7 +345,7 @@ public class ProcessDefinitionDemo { |
|
|
|
ProcessDefinitionLog processDefinitionLog = new ProcessDefinitionLog(); |
|
|
|
ProcessDefinitionLog processDefinitionLog = new ProcessDefinitionLog(); |
|
|
|
processDefinitionLog.setName("demo_parameter_context"); |
|
|
|
processDefinitionLog.setName("demo_parameter_context"); |
|
|
|
processDefinitionLog.setDescription("Upstream and downstream task node parameter transfer"); |
|
|
|
processDefinitionLog.setDescription("Upstream and downstream task node parameter transfer"); |
|
|
|
processDefinitionLog.setGlobalParams(DemoContants.PARAMETER_CONTEXT_PARAMS); |
|
|
|
processDefinitionLog.setGlobalParams(DemoConstants.PARAMETER_CONTEXT_PARAMS); |
|
|
|
processDefinitionLog.setLocations(null); |
|
|
|
processDefinitionLog.setLocations(null); |
|
|
|
processDefinitionLog.setTimeout(0); |
|
|
|
processDefinitionLog.setTimeout(0); |
|
|
|
|
|
|
|
|
|
|
@ -550,7 +550,7 @@ public class ProcessDefinitionDemo { |
|
|
|
ProcessDefinitionLog processDefinitionLog = new ProcessDefinitionLog(); |
|
|
|
ProcessDefinitionLog processDefinitionLog = new ProcessDefinitionLog(); |
|
|
|
processDefinitionLog.setName("demo_switch"); |
|
|
|
processDefinitionLog.setName("demo_switch"); |
|
|
|
processDefinitionLog.setDescription("Determine which task to perform based on conditions"); |
|
|
|
processDefinitionLog.setDescription("Determine which task to perform based on conditions"); |
|
|
|
processDefinitionLog.setGlobalParams(DemoContants.SWITCH_GLOBAL_PARAMS); |
|
|
|
processDefinitionLog.setGlobalParams(DemoConstants.SWITCH_GLOBAL_PARAMS); |
|
|
|
processDefinitionLog.setLocations(null); |
|
|
|
processDefinitionLog.setLocations(null); |
|
|
|
processDefinitionLog.setTimeout(0); |
|
|
|
processDefinitionLog.setTimeout(0); |
|
|
|
|
|
|
|
|
|
|
@ -668,7 +668,7 @@ public class ProcessDefinitionDemo { |
|
|
|
ProcessDefinitionLog processDefinitionLog = new ProcessDefinitionLog(); |
|
|
|
ProcessDefinitionLog processDefinitionLog = new ProcessDefinitionLog(); |
|
|
|
processDefinitionLog.setName("demo_shell"); |
|
|
|
processDefinitionLog.setName("demo_shell"); |
|
|
|
processDefinitionLog.setDescription("Production, processing and sales of a series of processes"); |
|
|
|
processDefinitionLog.setDescription("Production, processing and sales of a series of processes"); |
|
|
|
processDefinitionLog.setGlobalParams(DemoContants.SHELL_GLOBAL_PARAMS); |
|
|
|
processDefinitionLog.setGlobalParams(DemoConstants.SHELL_GLOBAL_PARAMS); |
|
|
|
processDefinitionLog.setLocations(null); |
|
|
|
processDefinitionLog.setLocations(null); |
|
|
|
processDefinitionLog.setTimeout(0); |
|
|
|
processDefinitionLog.setTimeout(0); |
|
|
|
|
|
|
|
|
|
|
|