-
Notifications
You must be signed in to change notification settings - Fork 248
Slickflow JSON Script Test
besley edited this page Mar 27, 2017
·
2 revisions
Usually the process is tested each activity step by step, this will cost much time to run the process instance to complete state. There is a json file to prepare activity runner and condition information to make the test job continulally through the process life cycle. The RestClient plugin in firefox will be a prefered one.
1. The sequence workflow pattern test json file:
{
"ProcessID": "3",
"ProcessName": "Price Process",
"ProcessGUID": "072af8c3-482a-4b1c-890b-685ce2fcc75d",
"AppInstanceID": "SEQ-P-1099",
//start process
"Start": {
"UserID": "10",
"UserName": "Long",
"AppName": "SamplePrice",
"AppInstanceID": "SEQ-P-1099",
"ProcessGUID": "072af8c3-482a-4b1c-890b-685ce2fcc75d"
},
//Sales Apply a form
//run process
"Apply": {
"UserID": "10",
"UserName": "Long",
"AppName": "SamplePrice",
"AppInstanceID": "SEQ-P-1099",
"ProcessGUID": "072af8c3-482a-4b1c-890b-685ce2fcc75d",
"NextActivityPerformers": {
"eb833577-abb5-4239-875a-5f2e2fcb6d57": [
{
"UserID": 10,
"UserName": "Long"
}
]
}
},
//Sign the form
//run process
"Sign": {
"UserID": "10",
"UserName": "Long",
"AppName": "SamplePrice",
"AppInstanceID": "SEQ-P-1099",
"ProcessGUID": "072af8c3-482a-4b1c-890b-685ce2fcc75d",
"NextActivityPerformers": {
"cab57060-f433-422a-a66f-4a5ecfafd54e": [
{
"UserID": 10,
"UserName": "Long"
}
]
}
},
//Confirm the form and complete the process
//run process
"Confirm": {
"UserID": "10",
"UserName": "Long",
"AppName": "SamplePrice",
"AppInstanceID": "SEQ-P-1099",
"ProcessGUID": "072af8c3-482a-4b1c-890b-685ce2fcc75d",
"NextActivityPerformers": {
"b53eb9ab-3af6-41ad-d722-bed946d19792": [
{
"UserID": 10,
"UserName": "Long"
}
]
}
}
}
2. The split workflow pattern test json file:
{
"AppInstanceID": "10998",
"ProcessID": "73",
"ProcessName": "Office Process",
"ProcessGUID": "3a8ce214-fd18-4fac-95c0-e7958bc1b2f8",
//Apply a form
//start process
"Start": {
"UserID": "10",
"UserName": "Long",
"AppName": "OfficeIn",
"AppInstanceID": "10998",
"ProcessGUID": "3a8ce214-fd18-4fac-95c0-e7958bc1b2f8"
},
//Store Review
//run process
"Store": {
"AppName": "OfficeIn",
"AppInstanceID": "10998",
"ProcessGUID": "3a8ce214-fd18-4fac-95c0-e7958bc1b2f8",
"UserID": "10",
"UserName": "Long",
"Conditions": { "surplus": "normal" },
"NextActivityPerformers": {
"c3cbb3cc-fa60-42ad-9a10-4ec2638aff49": [
{
"UserID": 10,
"UserName": "Long"
}
]
}
},
//HR Review, and complete the process
//run process
"HR": {
"AppName": "OfficeIn",
"AppInstanceID": "10998",
"ProcessGUID": "3a8ce214-fd18-4fac-95c0-e7958bc1b2f8",
"UserID": "10",
"UserName": "Long",
"NextActivityPerformers": {
"30929bbb-c76e-4604-c956-f26feb4aa22e": [
{
"UserID": 10,
"UserName": "Long"
}
]
}
}
}