提交 eb5f5c14 编写于 作者: NoSubject's avatar NoSubject

增加流程活动的自定义属性,并可通过脚本this.workContext.getActivity().customData获取

上级 3287dc19
...@@ -10,11 +10,13 @@ ...@@ -10,11 +10,13 @@
"line-height": "20px", "line-height": "20px",
"background": "#EEE" "background": "#EEE"
}, },
"titleTextNode": { "titleTextNode": {
"line-height": "20px", "line-height": "20px",
"font-size": "12px", "font-size": "12px",
"padding-left": "5px", "padding": "0 5px",
"cursor": "pointer" "cursor": "pointer",
"font-weight": "bold"
}, },
"titleActionNode": { "titleActionNode": {
"float": "right", "float": "right",
...@@ -125,4 +127,4 @@ ...@@ -125,4 +127,4 @@
"font-family": "Verdana, Geneva, sans-serif" "font-family": "Verdana, Geneva, sans-serif"
} }
} }
\ No newline at end of file
...@@ -42,6 +42,7 @@ ...@@ -42,6 +42,7 @@
</tr> </tr>
</table> </table>
</table> </table>
<div class="MWFMaplist" name="customData" title="{{$.lp.customData}}" data-o2-advanced="yes"></div>
</div> </div>
<div title="{{$.lp.script}}" class="MWFTab"> <div title="{{$.lp.script}}" class="MWFTab">
<div class="editTableHeadTitle">{{$.lp.runScript}}</div> <div class="editTableHeadTitle">{{$.lp.runScript}}</div>
......
...@@ -31,17 +31,18 @@ ...@@ -31,17 +31,18 @@
<div class="MWFFormSelect" name="form"></div> <div class="MWFFormSelect" name="form"></div>
</td> </td>
</tr> </tr>
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
<tr>
<td class="editTableValue" colspan="2"><b>{{$.lp.allowReroute}}: </b><input class="editTableRadio" name="allowReroute" text{($.allowReroute)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
<input class="editTableRadio" name="allowReroute" text{(!$.allowReroute)?'checked':''} type="radio" value="false"/>{{$.lp.no}}</td>
</tr>
<tr>
<td class="editTableValue" colspan="2"><b>{{$.lp.allowRerouteTo}}: </b><input class="editTableRadio" name="allowRerouteTo" text{($.allowRerouteTo)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
<input class="editTeditTableRadioableInput" class="editTableInput" name="allowRerouteTo" text{(!$.allowRerouteTo)?'checked':''} type="radio" value="false"/>{{$.lp.no}}</td>
</tr>
</table>
</table> </table>
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
<tr>
<td class="editTableValue" colspan="2"><b>{{$.lp.allowReroute}}: </b><input class="editTableRadio" name="allowReroute" text{($.allowReroute)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
<input class="editTableRadio" name="allowReroute" text{(!$.allowReroute)?'checked':''} type="radio" value="false"/>{{$.lp.no}}</td>
</tr>
<tr>
<td class="editTableValue" colspan="2"><b>{{$.lp.allowRerouteTo}}: </b><input class="editTableRadio" name="allowRerouteTo" text{($.allowRerouteTo)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
<input class="editTeditTableRadioableInput" class="editTableInput" name="allowRerouteTo" text{(!$.allowRerouteTo)?'checked':''} type="radio" value="false"/>{{$.lp.no}}</td>
</tr>
</table>
<div class="MWFMaplist" name="customData" title="{{$.lp.customData}}" data-o2-advanced="yes"></div>
</div> </div>
<div title="{{$.lp.person}}" class="MWFTab"> <div title="{{$.lp.person}}" class="MWFTab">
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable"> <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
......
...@@ -31,17 +31,18 @@ ...@@ -31,17 +31,18 @@
<div class="MWFFormSelect" name="form"></div> <div class="MWFFormSelect" name="form"></div>
</td> </td>
</tr> </tr>
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
<tr>
<td class="editTableValue" colspan="2"><b>{{$.lp.allowReroute}}: </b><input class="editTableRadio" name="allowReroute" text{($.allowReroute)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
<input class="editTableRadio" name="allowReroute" text{(!$.allowReroute)?'checked':''} type="radio" value="false"/>{{$.lp.no}}</td>
</tr>
<tr>
<td class="editTableValue" colspan="2"><b>{{$.lp.allowRerouteTo}}: </b><input class="editTableRadio" name="allowRerouteTo" text{($.allowRerouteTo)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
<input class="editTeditTableRadioableInput" class="editTableInput" name="allowRerouteTo" text{(!$.allowRerouteTo)?'checked':''} type="radio" value="false"/>{{$.lp.no}}</td>
</tr>
</table>
</table> </table>
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
<tr>
<td class="editTableValue" colspan="2"><b>{{$.lp.allowReroute}}: </b><input class="editTableRadio" name="allowReroute" text{($.allowReroute)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
<input class="editTableRadio" name="allowReroute" text{(!$.allowReroute)?'checked':''} type="radio" value="false"/>{{$.lp.no}}</td>
</tr>
<tr>
<td class="editTableValue" colspan="2"><b>{{$.lp.allowRerouteTo}}: </b><input class="editTableRadio" name="allowRerouteTo" text{($.allowRerouteTo)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
<input class="editTeditTableRadioableInput" class="editTableInput" name="allowRerouteTo" text{(!$.allowRerouteTo)?'checked':''} type="radio" value="false"/>{{$.lp.no}}</td>
</tr>
</table>
<div class="MWFMaplist" name="customData" title="{{$.lp.customData}}" data-o2-advanced="yes"></div>
</div> </div>
<div title="{{$.lp.person}}" class="MWFTab"> <div title="{{$.lp.person}}" class="MWFTab">
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable"> <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
......
...@@ -31,17 +31,18 @@ ...@@ -31,17 +31,18 @@
<div class="MWFFormSelect" name="form"></div> <div class="MWFFormSelect" name="form"></div>
</td> </td>
</tr> </tr>
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
<tr>
<td class="editTableValue" colspan="2"><b>{{$.lp.allowReroute}}: </b><input class="editTableRadio" name="allowReroute" text{($.allowReroute)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
<input class="editTableRadio" name="allowReroute" text{(!$.allowReroute)?'checked':''} type="radio" value="false"/>{{$.lp.no}}</td>
</tr>
<tr>
<td class="editTableValue" colspan="2"><b>{{$.lp.allowRerouteTo}}: </b><input class="editTableRadio" name="allowRerouteTo" text{($.allowRerouteTo)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
<input class="editTeditTableRadioableInput" class="editTableInput" name="allowRerouteTo" text{(!$.allowRerouteTo)?'checked':''} type="radio" value="false"/>{{$.lp.no}}</td>
</tr>
</table>
</table> </table>
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
<tr>
<td class="editTableValue" colspan="2"><b>{{$.lp.allowReroute}}: </b><input class="editTableRadio" name="allowReroute" text{($.allowReroute)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
<input class="editTableRadio" name="allowReroute" text{(!$.allowReroute)?'checked':''} type="radio" value="false"/>{{$.lp.no}}</td>
</tr>
<tr>
<td class="editTableValue" colspan="2"><b>{{$.lp.allowRerouteTo}}: </b><input class="editTableRadio" name="allowRerouteTo" text{($.allowRerouteTo)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
<input class="editTeditTableRadioableInput" class="editTableInput" name="allowRerouteTo" text{(!$.allowRerouteTo)?'checked':''} type="radio" value="false"/>{{$.lp.no}}</td>
</tr>
</table>
<div class="MWFMaplist" name="customData" title="{{$.lp.customData}}" data-o2-advanced="yes"></div>
</div> </div>
<div title="{{$.lp.person}}" class="MWFTab"> <div title="{{$.lp.person}}" class="MWFTab">
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable"> <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
......
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
<input class="editTeditTableRadioableInput" class="editTableInput" name="allowRerouteTo" text{(!$.allowRerouteTo)?'checked':''} type="radio" value="false"/></td> <input class="editTeditTableRadioableInput" class="editTableInput" name="allowRerouteTo" text{(!$.allowRerouteTo)?'checked':''} type="radio" value="false"/></td>
</tr> </tr>
</table> </table>
<div class="MWFMaplist" name="customData" title="{{$.lp.customData}}" data-o2-advanced="yes"></div>
</div> </div>
<!--<div title="路由" class="MWFTab"> <!--<div title="路由" class="MWFTab">
<div class="MWFCondition" name="script"></div> <div class="MWFCondition" name="script"></div>
......
...@@ -31,17 +31,18 @@ ...@@ -31,17 +31,18 @@
<div class="MWFFormSelect" name="form"></div> <div class="MWFFormSelect" name="form"></div>
</td> </td>
</tr> </tr>
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
<tr>
<td class="editTableValue" colspan="2"><b>{{$.lp.allowReroute}}: </b><input class="editTableRadio" name="allowReroute" text{($.allowReroute)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
<input class="editTableRadio" name="allowReroute" text{(!$.allowReroute)?'checked':''} type="radio" value="false"/>{{$.lp.no}}</td>
</tr>
<tr>
<td class="editTableValue" colspan="2"><b>{{$.lp.allowRerouteTo}}: </b><input class="editTableRadio" name="allowRerouteTo" text{($.allowRerouteTo)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
<input class="editTeditTableRadioableInput" class="editTableInput" name="allowRerouteTo" text{(!$.allowRerouteTo)?'checked':''} type="radio" value="false"/>{{$.lp.no}}</td>
</tr>
</table>
</table> </table>
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
<tr>
<td class="editTableValue" colspan="2"><b>{{$.lp.allowReroute}}: </b><input class="editTableRadio" name="allowReroute" text{($.allowReroute)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
<input class="editTableRadio" name="allowReroute" text{(!$.allowReroute)?'checked':''} type="radio" value="false"/>{{$.lp.no}}</td>
</tr>
<tr>
<td class="editTableValue" colspan="2"><b>{{$.lp.allowRerouteTo}}: </b><input class="editTableRadio" name="allowRerouteTo" text{($.allowRerouteTo)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
<input class="editTeditTableRadioableInput" class="editTableInput" name="allowRerouteTo" text{(!$.allowRerouteTo)?'checked':''} type="radio" value="false"/>{{$.lp.no}}</td>
</tr>
</table>
<div class="MWFMaplist" name="customData" title="{{$.lp.customData}}" data-o2-advanced="yes"></div>
</div> </div>
<div title="{{$.lp.timer}}" class="MWFTab"> <div title="{{$.lp.timer}}" class="MWFTab">
<div class="editTableHeadTitle">{{$.lp.timerType}}</div> <div class="editTableHeadTitle">{{$.lp.timerType}}</div>
......
...@@ -31,17 +31,18 @@ ...@@ -31,17 +31,18 @@
<div class="MWFFormSelect" name="form"></div> <div class="MWFFormSelect" name="form"></div>
</td> </td>
</tr> </tr>
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
<tr>
<td class="editTableValue" colspan="2"><b>{{$.lp.allowReroute}}: </b><input class="editTableRadio" name="allowReroute" text{($.allowReroute)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
<input class="editTableRadio" name="allowReroute" text{(!$.allowReroute)?'checked':''} type="radio" value="false"/>{{$.lp.no}}</td>
</tr>
<tr>
<td class="editTableValue" colspan="2"><b>{{$.lp.allowRerouteTo}}: </b><input class="editTableRadio" name="allowRerouteTo" text{($.allowRerouteTo)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
<input class="editTeditTableRadioableInput" class="editTableInput" name="allowRerouteTo" text{(!$.allowRerouteTo)?'checked':''} type="radio" value="false"/>{{$.lp.no}}</td>
</tr>
</table>
</table> </table>
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
<tr>
<td class="editTableValue" colspan="2"><b>{{$.lp.allowReroute}}: </b><input class="editTableRadio" name="allowReroute" text{($.allowReroute)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
<input class="editTableRadio" name="allowReroute" text{(!$.allowReroute)?'checked':''} type="radio" value="false"/>{{$.lp.no}}</td>
</tr>
<tr>
<td class="editTableValue" colspan="2"><b>{{$.lp.allowRerouteTo}}: </b><input class="editTableRadio" name="allowRerouteTo" text{($.allowRerouteTo)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
<input class="editTeditTableRadioableInput" class="editTableInput" name="allowRerouteTo" text{(!$.allowRerouteTo)?'checked':''} type="radio" value="false"/>{{$.lp.no}}</td>
</tr>
</table>
<div class="MWFMaplist" name="customData" title="{{$.lp.customData}}" data-o2-advanced="yes"></div>
</div> </div>
<div title="{{$.lp.embed}}" class="MWFTab"> <div title="{{$.lp.embed}}" class="MWFTab">
<!-- <div class="MWFApplicationSelect" title="选择应用"></div>--> <!-- <div class="MWFApplicationSelect" title="选择应用"></div>-->
......
...@@ -31,17 +31,18 @@ ...@@ -31,17 +31,18 @@
<div class="MWFFormSelect" name="form"></div> <div class="MWFFormSelect" name="form"></div>
</td> </td>
</tr> </tr>
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
<tr>
<td class="editTableValue" colspan="2"><b>{{$.lp.allowReroute}}: </b><input class="editTableRadio" name="allowReroute" text{($.allowReroute)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
<input class="editTableRadio" name="allowReroute" text{(!$.allowReroute)?'checked':''} type="radio" value="false"/>{{$.lp.no}}</td>
</tr>
<tr>
<td class="editTableValue" colspan="2"><b>{{$.lp.allowRerouteTo}}: </b><input class="editTableRadio" name="allowRerouteTo" text{($.allowRerouteTo)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
<input class="editTeditTableRadioableInput" class="editTableInput" name="allowRerouteTo" text{(!$.allowRerouteTo)?'checked':''} type="radio" value="false"/>{{$.lp.no}}</td>
</tr>
</table>
</table> </table>
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
<tr>
<td class="editTableValue" colspan="2"><b>{{$.lp.allowReroute}}: </b><input class="editTableRadio" name="allowReroute" text{($.allowReroute)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
<input class="editTableRadio" name="allowReroute" text{(!$.allowReroute)?'checked':''} type="radio" value="false"/>{{$.lp.no}}</td>
</tr>
<tr>
<td class="editTableValue" colspan="2"><b>{{$.lp.allowRerouteTo}}: </b><input class="editTableRadio" name="allowRerouteTo" text{($.allowRerouteTo)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
<input class="editTeditTableRadioableInput" class="editTableInput" name="allowRerouteTo" text{(!$.allowRerouteTo)?'checked':''} type="radio" value="false"/>{{$.lp.no}}</td>
</tr>
</table>
<div class="MWFMaplist" name="customData" title="{{$.lp.customData}}" data-o2-advanced="yes"></div>
</div> </div>
<div title="{{$.lp.person}}" class="MWFTab"> <div title="{{$.lp.person}}" class="MWFTab">
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable"> <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
......
...@@ -31,17 +31,18 @@ ...@@ -31,17 +31,18 @@
<div class="MWFFormSelect" name="form"></div> <div class="MWFFormSelect" name="form"></div>
</td> </td>
</tr> </tr>
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
<tr>
<td class="editTableValue" colspan="2"><b>{{$.lp.allowReroute}}: </b><input class="editTableRadio" name="allowReroute" text{($.allowReroute)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
<input class="editTableRadio" name="allowReroute" text{(!$.allowReroute)?'checked':''} type="radio" value="false"/>{{$.lp.no}}</td>
</tr>
<tr>
<td class="editTableValue" colspan="2"><b>{{$.lp.allowRerouteTo}}: </b><input class="editTableRadio" name="allowRerouteTo" text{($.allowRerouteTo)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
<input class="editTeditTableRadioableInput" class="editTableInput" name="allowRerouteTo" text{(!$.allowRerouteTo)?'checked':''} type="radio" value="false"/>{{$.lp.no}}</td>
</tr>
</table>
</table> </table>
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
<tr>
<td class="editTableValue" colspan="2"><b>{{$.lp.allowReroute}}: </b><input class="editTableRadio" name="allowReroute" text{($.allowReroute)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
<input class="editTableRadio" name="allowReroute" text{(!$.allowReroute)?'checked':''} type="radio" value="false"/>{{$.lp.no}}</td>
</tr>
<tr>
<td class="editTableValue" colspan="2"><b>{{$.lp.allowRerouteTo}}: </b><input class="editTableRadio" name="allowRerouteTo" text{($.allowRerouteTo)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
<input class="editTeditTableRadioableInput" class="editTableInput" name="allowRerouteTo" text{(!$.allowRerouteTo)?'checked':''} type="radio" value="false"/>{{$.lp.no}}</td>
</tr>
</table>
<div class="MWFMaplist" name="customData" title="{{$.lp.customData}}" data-o2-advanced="yes"></div>
</div> </div>
<div title="{{$.lp.invoke}}" class="MWFTab"> <div title="{{$.lp.invoke}}" class="MWFTab">
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable"> <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
......
...@@ -31,17 +31,18 @@ ...@@ -31,17 +31,18 @@
<div class="MWFFormSelect" name="form"></div> <div class="MWFFormSelect" name="form"></div>
</td> </td>
</tr> </tr>
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
<tr>
<td class="editTableValue" colspan="2"><b>{{$.lp.allowReroute}}: </b><input class="editTableRadio" name="allowReroute" text{($.allowReroute)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
<input class="editTableRadio" name="allowReroute" text{(!$.allowReroute)?'checked':''} type="radio" value="false"/>{{$.lp.no}}</td>
</tr>
<tr>
<td class="editTableValue" colspan="2"><b>{{$.lp.allowRerouteTo}}: </b><input class="editTableRadio" name="allowRerouteTo" text{($.allowRerouteTo)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
<input class="editTeditTableRadioableInput" class="editTableInput" name="allowRerouteTo" text{(!$.allowRerouteTo)?'checked':''} type="radio" value="false"/>{{$.lp.no}}</td>
</tr>
</table>
</table> </table>
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
<tr>
<td class="editTableValue" colspan="2"><b>{{$.lp.allowReroute}}: </b><input class="editTableRadio" name="allowReroute" text{($.allowReroute)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
<input class="editTableRadio" name="allowReroute" text{(!$.allowReroute)?'checked':''} type="radio" value="false"/>{{$.lp.no}}</td>
</tr>
<tr>
<td class="editTableValue" colspan="2"><b>{{$.lp.allowRerouteTo}}: </b><input class="editTableRadio" name="allowRerouteTo" text{($.allowRerouteTo)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
<input class="editTeditTableRadioableInput" class="editTableInput" name="allowRerouteTo" text{(!$.allowRerouteTo)?'checked':''} type="radio" value="false"/>{{$.lp.no}}</td>
</tr>
</table>
<div class="MWFMaplist" name="customData" title="{{$.lp.customData}}" data-o2-advanced="yes"></div>
</div> </div>
<div title="{{$.lp.person}}" class="MWFTab"> <div title="{{$.lp.person}}" class="MWFTab">
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable"> <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
......
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
<input class="editTeditTableRadioableInput" class="editTableInput" name="allowRerouteTo" text{(!$.allowRerouteTo)?'checked':''} type="radio" value="false"/></td> <input class="editTeditTableRadioableInput" class="editTableInput" name="allowRerouteTo" text{(!$.allowRerouteTo)?'checked':''} type="radio" value="false"/></td>
</tr> </tr>
</table> </table>
<div class="MWFMaplist" name="customData" title="{{$.lp.customData}}" data-o2-advanced="yes"></div>
</div> </div>
<div title="消息" class="MWFTab"> <div title="消息" class="MWFTab">
<div class="editTableHeadTitle">消息</div> <div class="editTableHeadTitle">消息</div>
......
...@@ -31,17 +31,18 @@ ...@@ -31,17 +31,18 @@
<div class="MWFFormSelect" name="form"></div> <div class="MWFFormSelect" name="form"></div>
</td> </td>
</tr> </tr>
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
<tr>
<td class="editTableValue" colspan="2"><b>{{$.lp.allowReroute}}: </b><input class="editTableRadio" name="allowReroute" text{($.allowReroute)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
<input class="editTableRadio" name="allowReroute" text{(!$.allowReroute)?'checked':''} type="radio" value="false"/>{{$.lp.no}}</td>
</tr>
<tr>
<td class="editTableValue" colspan="2"><b>{{$.lp.allowRerouteTo}}: </b><input class="editTableRadio" name="allowRerouteTo" text{($.allowRerouteTo)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
<input class="editTeditTableRadioableInput" class="editTableInput" name="allowRerouteTo" text{(!$.allowRerouteTo)?'checked':''} type="radio" value="false"/>{{$.lp.no}}</td>
</tr>
</table>
</table> </table>
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
<tr>
<td class="editTableValue" colspan="2"><b>{{$.lp.allowReroute}}: </b><input class="editTableRadio" name="allowReroute" text{($.allowReroute)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
<input class="editTableRadio" name="allowReroute" text{(!$.allowReroute)?'checked':''} type="radio" value="false"/>{{$.lp.no}}</td>
</tr>
<tr>
<td class="editTableValue" colspan="2"><b>{{$.lp.allowRerouteTo}}: </b><input class="editTableRadio" name="allowRerouteTo" text{($.allowRerouteTo)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
<input class="editTeditTableRadioableInput" class="editTableInput" name="allowRerouteTo" text{(!$.allowRerouteTo)?'checked':''} type="radio" value="false"/>{{$.lp.no}}</td>
</tr>
</table>
<div class="MWFMaplist" name="customData" title="{{$.lp.customData}}" data-o2-advanced="yes"></div>
</div> </div>
<div title="{{$.lp.person}}" class="MWFTab"> <div title="{{$.lp.person}}" class="MWFTab">
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable"> <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
......
...@@ -31,17 +31,18 @@ ...@@ -31,17 +31,18 @@
<div class="MWFFormSelect" name="form"></div> <div class="MWFFormSelect" name="form"></div>
</td> </td>
</tr> </tr>
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
<tr>
<td class="editTableValue" colspan="2"><b>{{$.lp.allowReroute}}: </b><input class="editTableRadio" name="allowReroute" text{($.allowReroute)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
<input class="editTableRadio" name="allowReroute" text{(!$.allowReroute)?'checked':''} type="radio" value="false"/>{{$.lp.no}}</td>
</tr>
<tr>
<td class="editTableValue" colspan="2"><b>{{$.lp.allowRerouteTo}}: </b><input class="editTableRadio" name="allowRerouteTo" text{($.allowRerouteTo)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
<input class="editTeditTableRadioableInput" class="editTableInput" name="allowRerouteTo" text{(!$.allowRerouteTo)?'checked':''} type="radio" value="false"/>{{$.lp.no}}</td>
</tr>
</table>
</table> </table>
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
<tr>
<td class="editTableValue" colspan="2"><b>{{$.lp.allowReroute}}: </b><input class="editTableRadio" name="allowReroute" text{($.allowReroute)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
<input class="editTableRadio" name="allowReroute" text{(!$.allowReroute)?'checked':''} type="radio" value="false"/>{{$.lp.no}}</td>
</tr>
<tr>
<td class="editTableValue" colspan="2"><b>{{$.lp.allowRerouteTo}}: </b><input class="editTableRadio" name="allowRerouteTo" text{($.allowRerouteTo)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
<input class="editTeditTableRadioableInput" class="editTableInput" name="allowRerouteTo" text{(!$.allowRerouteTo)?'checked':''} type="radio" value="false"/>{{$.lp.no}}</td>
</tr>
</table>
<div class="MWFMaplist" name="customData" title="{{$.lp.customData}}" data-o2-advanced="yes"></div>
</div> </div>
<div title="{{$.lp.service}}" class="MWFTab"> <div title="{{$.lp.service}}" class="MWFTab">
......
...@@ -31,17 +31,18 @@ ...@@ -31,17 +31,18 @@
<div class="MWFFormSelect" name="form"></div> <div class="MWFFormSelect" name="form"></div>
</td> </td>
</tr> </tr>
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
<tr>
<td class="editTableValue" colspan="2"><b>{{$.lp.allowReroute}}: </b><input class="editTableRadio" name="allowReroute" text{($.allowReroute)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
<input class="editTableRadio" name="allowReroute" text{(!$.allowReroute)?'checked':''} type="radio" value="false"/>{{$.lp.no}}</td>
</tr>
<tr>
<td class="editTableValue" colspan="2"><b>{{$.lp.allowRerouteTo}}: </b><input class="editTableRadio" name="allowRerouteTo" text{($.allowRerouteTo)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
<input class="editTeditTableRadioableInput" class="editTableInput" name="allowRerouteTo" text{(!$.allowRerouteTo)?'checked':''} type="radio" value="false"/>{{$.lp.no}}</td>
</tr>
</table>
</table> </table>
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
<tr>
<td class="editTableValue" colspan="2"><b>{{$.lp.allowReroute}}: </b><input class="editTableRadio" name="allowReroute" text{($.allowReroute)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
<input class="editTableRadio" name="allowReroute" text{(!$.allowReroute)?'checked':''} type="radio" value="false"/>{{$.lp.no}}</td>
</tr>
<tr>
<td class="editTableValue" colspan="2"><b>{{$.lp.allowRerouteTo}}: </b><input class="editTableRadio" name="allowRerouteTo" text{($.allowRerouteTo)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
<input class="editTeditTableRadioableInput" class="editTableInput" name="allowRerouteTo" text{(!$.allowRerouteTo)?'checked':''} type="radio" value="false"/>{{$.lp.no}}</td>
</tr>
</table>
<div class="MWFMaplist" name="customData" title="{{$.lp.customData}}" data-o2-advanced="yes"></div>
</div> </div>
<div title="{{$.lp.split}}" class="MWFTab"> <div title="{{$.lp.split}}" class="MWFTab">
<div class="editTableHeadTitle">{{$.lp.splitScript}}</div> <div class="editTableHeadTitle">{{$.lp.splitScript}}</div>
......
...@@ -67,6 +67,7 @@ MWF.xApplication.process.ProcessDesigner.Property = new Class({ ...@@ -67,6 +67,7 @@ MWF.xApplication.process.ProcessDesigner.Property = new Class({
this.loadIconSelect(); this.loadIconSelect();
this.loadContextRoot(); this.loadContextRoot();
this.loadProjection(); this.loadProjection();
this.loadMaplist();
this.hideAdvanced(); this.hideAdvanced();
}.bind(this)); }.bind(this));
...@@ -417,6 +418,35 @@ MWF.xApplication.process.ProcessDesigner.Property = new Class({ ...@@ -417,6 +418,35 @@ MWF.xApplication.process.ProcessDesigner.Property = new Class({
}.bind(this)); }.bind(this));
}.bind(this)); }.bind(this));
}, },
loadMaplist: function(){
var maplists = this.propertyContent.getElements(".MWFMaplist");
maplists.each(function(node){
var title = node.get("title");
var name = node.get("name");
var lName = name.toLowerCase();
var collapse = node.get("collapse");
var mapObj = this.data[name] || "{}";
//if (!mapObj) mapObj = {};
MWF.require("MWF.widget.Maplist", function(){
node.empty();
var maplist = new MWF.widget.Maplist(node, {
"title": title,
"collapse": (collapse) ? true : false,
"onChange": function(){
//this.data[name] = maplist.toJson();
//
//var oldData = this.data[name];
this.setValue(name, JSON.stringify(maplist.toJson()));
// this.changeStyle(name, oldData);
// this.changeData(name);
}.bind(this),
"isProperty": (lName.contains("properties") || lName.contains("property") || lName.contains("attribute"))
});
maplist.load(JSON.parse(mapObj));
//this.maplists[name] = maplist;
}.bind(this));
}.bind(this));
},
loadPersonInput: function(){ loadPersonInput: function(){
debugger; debugger;
var personIdentityNodes = this.propertyContent.getElements(".MWFPersonIdentity"); var personIdentityNodes = this.propertyContent.getElements(".MWFPersonIdentity");
......
...@@ -356,6 +356,8 @@ MWF.xApplication.process.ProcessDesigner.LP = { ...@@ -356,6 +356,8 @@ MWF.xApplication.process.ProcessDesigner.LP = {
"activityGroup": "活动组", "activityGroup": "活动组",
"opinionGroup": "意见组", "opinionGroup": "意见组",
"taskPerson": "处理人", "taskPerson": "处理人",
"customData": "自定义属性",
"identity": "用户标识", "identity": "用户标识",
"group": "处理群组", "group": "处理群组",
"readGroup": "待阅群组", "readGroup": "待阅群组",
...@@ -382,22 +384,22 @@ MWF.xApplication.process.ProcessDesigner.LP = { ...@@ -382,22 +384,22 @@ MWF.xApplication.process.ProcessDesigner.LP = {
"eventInfo1": "启动流程生成work实例", "eventInfo1": "启动流程生成work实例",
"afterBegin": "流程启动", "afterBegin": "流程启动",
"beforeArrive": "活动到达前", "beforeArrive": "活动到达前",
"eventInfo2": "执行Arrive操作<br/>活动属性设置", "eventInfo2": "执行Arrive操作活动属性设置",
"afterArrive": "活动到达后", "afterArrive": "活动到达后",
"beforeExecute": "活动执行前", "beforeExecute": "活动执行前",
"eventInfo3": "执行Execute操作<br/>执行自动活动任务", "eventInfo3": "执行Execute操作执行自动活动任务",
"afterExecute": "活动执行后", "afterExecute": "活动执行后",
"beforeInquire": "路由查询前", "beforeInquire": "路由查询前",
"eventInfo4": "执行Inquire操作<br/>查询到达下一个活动的路由", "eventInfo4": "执行Inquire操作查询到达下一个活动的路由",
"afterInquire": "路由查询后", "afterInquire": "路由查询后",
"beforeEnd": "流程结束前", "beforeEnd": "流程结束前",
"eventInfo5": "结束流程<br/>生成workCompleted", "eventInfo5": "结束流程,生成workCompleted",
"afterEnd": "流程结束", "afterEnd": "流程结束",
"beforeWorkArrive": "工作到达前", "beforeWorkArrive": "工作到达前",
"beforeArriveActivity": "文件收到前", "beforeArriveActivity": "文件收到前",
"afterArriveActivity": "文件收到后", "afterArriveActivity": "文件收到后",
"eventInfo6": "执行Arrive操作<br/>活动属性设置,计算可能的活动所有者", "eventInfo6": "执行Arrive操作活动属性设置,计算可能的活动所有者",
"eventInfo7": "执行Execute操作<br/>生成待办", "eventInfo7": "执行Execute操作生成待办",
"manualStay": "等待人工处理时", "manualStay": "等待人工处理时",
"eventInfo8": "用户流转待办", "eventInfo8": "用户流转待办",
"manualBeforeTask": "待办处理前", "manualBeforeTask": "待办处理前",
......
...@@ -498,7 +498,14 @@ MWF.xApplication.process.Work.Main = new Class({ ...@@ -498,7 +498,14 @@ MWF.xApplication.process.Work.Main = new Class({
// if( !task.routeDecisionOpinionList )task.routeDecisionOpinionList = task.properties.routeDecisionOpinionList; // if( !task.routeDecisionOpinionList )task.routeDecisionOpinionList = task.properties.routeDecisionOpinionList;
// } // }
//}); //});
if (workData.activity.properties && workData.activity.properties.customData){
try{
var customData = JSON.parse(workData.activity.properties.customData);
workData.activity.customData = customData;
}catch(e){
console.error(e);
}
}
this.activity = workData.activity; this.activity = workData.activity;
this.data = workData.data; this.data = workData.data;
this.taskList = workData.taskList; this.taskList = workData.taskList;
......
...@@ -124,7 +124,16 @@ var wrapWorkContext = { ...@@ -124,7 +124,16 @@ var wrapWorkContext = {
"getTask": function(){return JSON.parse(workContext.getTaskOrTaskCompleted());}, "getTask": function(){return JSON.parse(workContext.getTaskOrTaskCompleted());},
"getWork": function(){return JSON.parse(workContext.getWork());}, "getWork": function(){return JSON.parse(workContext.getWork());},
"getActivity": function(){return JSON.parse(workContext.getActivity());}, "getActivity": function(){
var act = JSON.parse(workContext.getActivity());
if (act.properties && act.properties.customData){
try{
var customData = JSON.parse(act.properties.customData);
act.customData = customData;
}catch(e){}
}
return act;
},
"getTaskList": function(){return JSON.parse(workContext.getTaskList());}, "getTaskList": function(){return JSON.parse(workContext.getTaskList());},
"getTaskCompletedList": function(){return JSON.parse(workContext.getTaskCompletedList());}, "getTaskCompletedList": function(){return JSON.parse(workContext.getTaskCompletedList());},
"getReadList": function(){return JSON.parse(workContext.getReadList());}, "getReadList": function(){return JSON.parse(workContext.getReadList());},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册