Skip to content

Instantly share code, notes, and snippets.

@yangbajing
Created December 7, 2012 02:49
Show Gist options
  • Save yangbajing/4230333 to your computer and use it in GitHub Desktop.
Save yangbajing/4230333 to your computer and use it in GitHub Desktop.
简单的流程定义
{
"name":"default_db:人事考勤:请假申请",
"initializations":[{
"name":"start",
"result":{
"to":"办公室",
"owner":"SE.account().name()"
},
"prefunctions":[],
"postfunctions":[]
}],
"steps":[{
"name":"办公室",
"actions":[{
"name":"办公室",
"result":{
"to":"人事部",
"owner":"SE.account().name()"
},
"prefunctions":[],
"postfunctions":[]
},{
"name":"否决",
"result":{
"to":"vote",
"owner":"SE.account().name()"
},
"prefunctions":[],
"postfunctions":[]
}]
},{
"name":"人事部",
"actions":[{
"name":"人事部",
"result":{
"to":"归档",
"owner":"SE.account().name()"
},
"prefunctions":[],
"postfunctions":[]
},{
"name":"否决",
"result":{
"to":"veto",
"owner":"SE.account().name()"
},
"prefunctions":[],
"postfunctions":[]
}]
},{
"name":"归档",
"actions":[{
"name":"办结",
"result":{
"to":"finish",
"owner":"SE.account().name()"
},
"prefunctions":[],
"postfunctions":[]
}]
},{
"name":"finish",
"actions":[],
"alias":"办结"
},{
"name":"veto",
"actions":[{
"name":"restart",
"result":{
"to":"办公室",
"owner":"SE.account().name()"
},
"prefunctions":[],
"postfunctions":[],
"alias":"重启用"
},{
"name":"invalid",
"result":{
"to":"invalid",
"owner":"SE.account().name()"
},
"prefunctions":[],
"postfunctions":[],
"alias":"作废"
}],
"alias":"否决"
},{
"name":"invalid",
"actions":[],
"alias":"作废"
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment