懒羊羊
2023-08-30 1ac2bc1590406d9babec036e154d8d08f34a6aa1
提交 | 用户 | 时间
1ac2bc 1
2 <div class="modal" ng-controller="KisBpmEventListenersPopupCtrl">
3     <div class="modal-dialog modal-wide">
4         <div class="modal-content">
5             <div class="modal-header">
6                 <button type="button" class="close" data-dismiss="modal" aria-hidden="true" ng-click="close()">&times;</button>
7                 <h2>{{'PROPERTY.PROPERTY.EDIT.TITLE' | translate:property}}</h2>
8             </div>
9             <div class="modal-body">
10             
11                 <div class="row row-no-gutter">
12                     <div class="col-xs-10">
13                         <div ng-if="translationsRetrieved" class="kis-listener-grid" ng-grid="gridOptions"></div>
14                         <div class="pull-right">
15                             <div class="btn-group">
16                                 <a class="btn btn-icon btn-lg" rel="tooltip" data-title="{{ACTION.MOVE.UP | translate}}" data-placement="bottom" data-original-title="" title="" ng-click="moveListenerUp()"><i class="glyphicon glyphicon-arrow-up"></i></a>
17                                 <a class="btn btn-icon btn-lg" rel="tooltip" data-title="{{ACTION.MOVE.DOWN | translate}}" data-placement="bottom" data-original-title="" title="" ng-click="moveListenerDown()"><i class="glyphicon glyphicon-arrow-down"></i></a>
18                             </div>
19                             <div class="btn-group">
20                                 <a class="btn btn-icon btn-lg" rel="tooltip" data-title="{{ACTION.ADD | translate}}" data-placement="bottom" data-original-title="" title="" ng-click="addNewListener()"><i class="glyphicon glyphicon-plus"></i></a>
21                                 <a class="btn btn-icon btn-lg" rel="tooltip" data-title="{{ACTION.REMOVE | translate}}" data-placement="bottom" data-original-title="" title="" ng-click="removeListener()"><i class="glyphicon glyphicon-minus"></i></a>
22                             </div>
23                         </div>
24                     </div>
25                 </div>
26                 
27                 <div class="row row-no-gutter">
28                       <div ng-if="translationsRetrieved" ng-show="selectedListeners.length > 0" class="col-xs-6">
29                         <div class="form-group">
30                             <label for="userField">{{'PROPERTY.EVENTLISTENERS.EVENTS' | translate}}</label>
31                             <div ng-repeat="eventDefinition in selectedListeners[0].events">
32                                 <select id="eventField" class="form-control" ng-model="eventDefinition.event" ng-change="listenerDetailsChanged()">
33                                     <option title="{{'EVENT_TYPE.ACTIVITY.COMPENSATE.TOOLTIP' | translate}}">ACTIVITY_COMPENSATE</option>
34                                     <option title="{{'EVENT_TYPE.ACTIVITY.COMPLETED.TOOLTIP' | translate}}">ACTIVITY_COMPLETED</option>
35                                     <option title="bla">ACTIVITY_ERROR_RECEIVED</option>
36                                     <option>ACTIVITY_MESSAGE_RECEIVED</option>
37                                     <option>ACTIVITY_SIGNALED</option>
38                                     <option>ACTIVITY_STARTED</option>
39                                     <option>ENGINE_CLOSED</option>
40                                     <option>ENGINE_CREATED</option>
41                                     <option>ENTITY_ACTIVATED</option>
42                                     <option>ENTITY_CREATED</option>
43                                     <option>ENTITY_DELETED</option>
44                                     <option>ENTITY_INITIALIZED</option>
45                                     <option>ENTITY_SUSPENDED</option>
46                                     <option>ENTITY_UPDATED</option>
47                                     <option>JOB_EXECUTION_FAILURE</option>
48                                     <option>JOB_EXECUTION_SUCCESS</option>
49                                     <option>JOB_RETRIES_DECREMENTED</option>
50                                     <option title="{{'EVENT_TYPE.MEMBERSHIP.CREATED.TOOLTIP' | translate}}">MEMBERSHIP_CREATED</option>
51                                     <option title="{{'EVENT_TYPE.MEMBERSHIP.DELETED.TOOLTIP' | translate}}">MEMBERSHIP_DELETED</option>
52                                     <option title="{{'EVENT_TYPE.MEMBERSHIPS.DELETED.TOOLTIP' | translate}}">MEMBERSHIPS_DELETED</option>
53                                     <option title="{{'EVENT_TYPE.TASK.ASSIGNED.TOOLTIP' | translate}}">TASK_ASSIGNED</option>
54                                     <option title="{{'EVENT_TYPE.TASK.COMPLETED.TOOLTIP' | translate}}">TASK_COMPLETED</option>
55                                     <option>TIMER_FIRED</option>
56                                     <option title="{{'EVENT_TYPE.UNCAUGHT.BPMNERROR.TOOLTIP' | translate}}">UNCAUGHT_BPMN_ERROR</option>
57                                     <option title="{{'EVENT_TYPE.VARIABLE.CREATED.TOOLTIP' | translate}}">VARIABLE_CREATED</option>
58                                     <option title="{{'EVENT_TYPE.VARIABLE.DELETED.TOOLTIP' | translate}}">VARIABLE_DELETED</option>
59                                     <option title="{{'EVENT_TYPE.VARIABLE.UPDATED.TOOLTIP' | translate}}">VARIABLE_UPDATED</option>
60                                    </select>
61                                 <i ng-if="$index > 0" class="glyphicon glyphicon-minus clickable-property" ng-click="removeEventValue($index)"></i>
62                                 <i class="glyphicon glyphicon-plus clickable-property" ng-click="addEventValue($index)"></i>
63                             </div>
64                             <div class="form-group">
65                                    <label for="classField">{{'PROPERTY.EVENTLISTENERS.RETHROW' | translate}}</label>
66                                    <input type="checkbox" id="rethrowField" class="form-control" ng-model="selectedListeners[0].rethrowEvent" ng-change="listenerDetailsChanged()" />
67                             </div>
68                            </div>
69                      </div>
70                      <div ng-show="selectedListeners.length > 0 && selectedListeners[0].events[0].event" class="col-xs-6">
71                          <div class="form-group" ng-if="!selectedListeners[0].rethrowEvent">
72                                <label for="classField">{{'PROPERTY.EVENTLISTENERS.CLASS' | translate}}</label>
73                                <input type="text" id="classField" class="form-control" ng-model="selectedListeners[0].className" ng-change="listenerDetailsChanged()" placeholder="{{'PROPERTY.EVENTLISTENERS.CLASS.PLACEHOLDER' | translate}}" />
74                         </div>
75                         <div class="form-group" ng-if="!selectedListeners[0].rethrowEvent">
76                                <label for="delegateExpressionField">{{'PROPERTY.EVENTLISTENERS.DELEGATEEXPRESSION' | translate}}</label>
77                                <input type="text" id="delegateExpressionField" class="form-control" ng-model="selectedListeners[0].delegateExpression" ng-change="listenerDetailsChanged()" placeholder="{{'PROPERTY.EVENTLISTENERS.DELEGATEEXPRESSION.PLACEHOLDER' | translate}}" />
78                         </div>
79                         <div class="form-group" ng-if="!selectedListeners[0].rethrowEvent">
80                                <label for="entityTypeField">{{'PROPERTY.EVENTLISTENERS.ENTITYTYPE' | translate}}</label>
81                                <input type="text" id="entityTypeField" class="form-control" ng-model="selectedListeners[0].entityType" ng-change="listenerDetailsChanged()" placeholder="{{'PROPERTY.EVENTLISTENERS.ENTITYTYPE.PLACEHOLDER' | translate}}" />
82                         </div>
83                         <div class="form-group" ng-if="selectedListeners[0].rethrowEvent">
84                                <label for="delegateExpressionField">{{'PROPERTY.EVENTLISTENERS.RETHROWTYPE' | translate}}</label>
85                                <select id="rethrowTypeField" class="form-control" ng-model="selectedListeners[0].rethrowType" ng-change="rethrowTypeChanged()">
86                                 <option>error</option>
87                                 <option>message</option>
88                                 <option>signal</option>
89                                 <option>globalSignal</option>
90                             </select>
91                         </div>
92                         <div class="form-group" ng-if="selectedListeners[0].rethrowType === 'error'">
93                                <label for="errorCodeField">{{'PROPERTY.EVENTLISTENERS.ERRORCODE' | translate}}</label>
94                                <input type="text" id="errorCodeField" class="form-control" ng-model="selectedListeners[0].errorcode" ng-change="listenerDetailsChanged()" placeholder="{{'PROPERTY.EVENTLISTENERS.ERRORCODE.PLACEHOLDER' | translate}}" />
95                         </div>
96                         <div class="form-group" ng-if="selectedListeners[0].rethrowType === 'message'">
97                                <label for="messageNameField">{{'PROPERTY.EVENTLISTENERS.MESSAGENAME' | translate}}</label>
98                                <input type="text" id="messageNameField" class="form-control" ng-model="selectedListeners[0].messagename" ng-change="listenerDetailsChanged()" placeholder="{{'PROPERTY.EVENTLISTENERS.MESSAGENAME.PLACEHOLDER' | translate}}" />
99                         </div>
100                         <div class="form-group" ng-if="selectedListeners[0].rethrowType === 'signal' || selectedListeners[0].rethrowType === 'globalSignal'">
101                                <label for="messageNameField">{{'PROPERTY.EVENTLISTENERS.SIGNALNAME' | translate}}</label>
102                                <input type="text" id="signalNameField" class="form-control" ng-model="selectedListeners[0].signalname" ng-change="listenerDetailsChanged()" placeholder="{{'PROPERTY.EVENTLISTENERS.SIGNALNAME.PLACEHOLDER' | translate}}" />
103                         </div>
104                      </div>
105                      <div ng-show="selectedListeners.length == 0" class="col-xs-6 muted no-property-selected" translate>PROPERTY.EVENTLISTENERS.UNSELECTED</div>
106                 </div>
107             
108             </div>
109             <div class="modal-footer">
110                 <button ng-click="cancel()" class="btn btn-primary" translate>ACTION.CANCEL</button>
111                 <button ng-click="save()" class="btn btn-primary" translate>ACTION.SAVE</button>
112             </div>
113         </div>
114     </div>
115 </div>