!function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;b="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,b.CockpitPlugins=a()}}(function(){return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g1?k(n,h):k(p,h[0])};i.on("mouseover",o),i.on("mouseout",function(){l(50)}),d.on("mouseover",o),d.on("mouseout",function(){l(100)}),d.on("click",q),b.$on("$destroy",function(){d.off("mouseover mouseout click"),i.off("mouseover mouseout")})}function p(a,b){q[a]||(q[a]=c.element(d).hide(),q[a].tooltip({container:"body",title:g.instant("PLUGIN_ACTIVITY_INSTANCE_SHOW_CALLED_PROCESS_INSTANCES"),placement:"top",animation:!1}),r.add(a,{position:{top:0,right:0},show:{minZoom:-(1/0),maxZoom:+(1/0)},html:q[a]}),o(q[a],a,b))}var q={},r=i.getViewer().get("overlays"),s=i.getViewer().get("elementRegistry"),t="called-process-instances-tab",u=m(),v={},w=function(a){Object.keys(a).map(function(b){return a[b][0].calledProcessInstanceId&&p(b,a[b])})},x=function(a,b){return a.reduce(function(a,c){return b[c]&&b[c].length>0&&(a[c]=b[c]),a},{})};"history"===a?u.length&&j.observe("activityIdToInstancesMap",function(a){v=x(u,a),w(v)}):u.length&&j.observe(["activityIdToInstancesMap","processInstance"],function(a,b){v=x(u,a),l.processInstances({id:b.id},function(a){return a.forEach(function(a){var b=v[a.callActivityId];b&&b.length&&(b[0].calledProcessInstanceId=a.id)}),w(v)})})}]}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],6:[function(a,b,c){(function(a){"use strict";var c="undefined"!=typeof window?window.angular:"undefined"!=typeof a?a.angular:null,d='\n\n\n\n\n\n\n',e=["$http","$modalInstance","$scope","Notifications","Uri","instance","isProcessInstance","fixDate","$translate","camAPI",function(a,b,d,e,f,g,h,i,j,k){d.isProcessInstance=h,d.variableTypes=["String","Boolean","Short","Integer","Long","Double","Date","Null","Object","Json","Xml"];var l=d.newVariable={name:null,type:"String",value:null},m="PERFORM_SAVE",n="SUCCESS",o="FAIL",p=k.resource("process-instance"),q=k.resource("case-instance");d.$on("$routeChangeStart",function(){b.close(d.status)}),d.close=function(){b.close(d.status)};var r=d.isValid=function(){var a=c.element('[name="addVariableForm"]').scope();return!(!a||!a.addVariableForm)&&a.addVariableForm.$valid};d.save=function(){if(r()){d.status=m;var a=c.extend({},l);"Date"===a.type&&(a.value=i(a.value));var b=h?p:q;b.setVariable(g.id,a).then(function(){d.status=n,e.addMessage({status:j.instant("VARIABLE_ADD_MESSAGE_STATUS_FINISHED"),message:j.instant("VARIABLE_ADD_MESSAGE_MESSAGE_ADD",{name:a.name}),exclusive:!0})})["catch"](function(a){d.status=o,e.addError({status:j.instant("VARIABLE_ADD_MESSAGE_STATUS_FINISHED"),message:j.instant("VARIABLE_ADD_MESSAGE_MESSAGE_ERROR",{message:a.message}),exclusive:!0})})}}}];b.exports={template:d,controller:e}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],7:[function(a,b,c){(function(a){"use strict";var c="undefined"!=typeof window?window.angular:"undefined"!=typeof a?a.angular:null,d='\n\n\n\n\n\n\n\n\n',e=["$http","$modalInstance","$scope","Notifications","Uri","basePath","history","readonly","variable","$translate",function(a,b,d,e,f,g,h,i,j,k){function l(){return c.element('[name="jsonXmlForm"]').scope().jsonXmlForm.$valid}function m(a){return"serialized"===a}function n(b,c){var e={type:b.type,value:c,valueInfo:b.valueInfo};d.isJsonOrXml||(e.valueInfo=b.valueInfo),a({method:"PUT",url:f.appUri(g),data:e}).success(function(){d.status=u,r(b)}).error(function(){d.status=s,q(b)})}function o(a,b){function c(b){d.$apply(function(){204===b.status?(d.status=u,r(a)):(d.status=s,q(a))})}var e=new FormData;e.append("data",new Blob([b],{type:"application/json"})),e.append("type",a.valueInfo.objectTypeName);var h=new XMLHttpRequest;h.addEventListener("load",function(){c(h)},!1),h.open("POST",f.appUri(g+"/data")),h.send(e)}function p(){a({method:"GET",url:f.appUri("engine://engine/:engine/"+(h?"history/":"")+"variable-instance/"+j.id)}).success(function(a){a.errorMessage?d.deserializationError=a.errorMessage:(v=JSON.stringify(a.value),d.currentDeserializedValue=c.copy(v))}).error(function(a){d.deserializationError=a.message})}function q(a){e.addError({status:k.instant("VARIABLE_INSPECT_VARIABLE"),message:k.instant("VARIABLE_INSPECT_MESSAGE_ERR_2",{name:a.name}),exclusive:!0})}function r(a){e.addMessage({status:k.instant("VARIABLE_INSPECT_VARIABLE"),message:k.instant("VARIABLE_INSPECT_MESSAGE_ADD",{name:a.name})})}var s="beforeChange",t="confirmChange",u="changeSuccess";d.selectedTab="serialized",d.status=s,d.variable=c.copy(j),d.isJsonOrXml=j.type&&("json"===j.type.toLowerCase()||"xml"===j.type.toLowerCase()),d.readonly=i,d.currentValue=c.copy(j.value);var v;d.isChangeDisabled=function(){return(d.isJsonOrXml?!l():"beforeChange"!==d.status)||!w()},d.$on("$routeChangeStart",function(){b.dismiss()}),d.selectTab=function(a){d.selectedTab=a,d.currentValue=c.copy(d.variable.value),d.currentDeserializedValue=c.copy(v),d.status=s},d.typeIn=function(a,b){m(b)?d.currentValue=a.currentValue:d.currentDeserializedValue=a.currentDeserializedValue,d.status=w(b)?t:s};var w=d.hasChanged=function(a){return d.isJsonOrXml||m(a)?d.variable.value!==d.currentValue:v!=d.currentDeserializedValue};d.change=function(){var a=!m(d.selectedTab),b=a?d.currentDeserializedValue:d.currentValue;if(d.isJsonOrXml&&(b=d.variable.value),"application/json"===j.valueInfo.serializationDataFormat||a)try{JSON.parse(b)}catch(c){return d.status=s,void e.addError({status:k.instant("VARIABLE_INSPECT_VARIABLE"),message:k.instant("VARIABLE_INSPECT_MESSAGE_ERR_1",{exception:c.message}),exclusive:!0})}a?o(d.variable,b):n(d.variable,b)},d.isJsonOrXml||p()}];b.exports={template:d,controller:e}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],8:[function(a,b,c){"use strict";var d='\n\n\n\n\n\n\n\n\n\n\n\n\n\n',e=["$modalInstance","$scope","Notifications","Uri","basePath","variable","$translate",function(a,b,c,d,e,f,g){var h="beforeUpload",i="performUpload",j="uploadSuccess",k="uploadFailed";b.status=h,b.variable=f;var l;b.$on("$routeChangeStart",function(){a.dismiss()}),b.upload=function(){function a(a){b.$apply(function(){b.status=i,a.lengthComputable&&(b.progress=Math.round(100*a.loaded/a.total))})}function h(a){b.$apply(function(){204===a.status?(b.status=j,c.addMessage({status:g.instant("VARIABLE_UPLOAD_FILE"),message:g.instant("VARIABLE_UPLOAD_MESSAGE_ADD")})):(b.status=k,c.addError({status:g.instant("VARIABLE_UPLOAD_FILE"),message:g.instant("VARIABLE_UPLOAD_MESSAGE_ERR"),exclusive:!0}))})}function m(){b.$apply(function(){b.status=k,c.addError({status:g.instant("VARIABLE_UPLOAD_FILE"),message:g.instant("VARIABLE_UPLOAD_MESSAGE_ERR"),exclusive:!0})})}var n=new FormData;n.append("data",l),n.append("valueType",f.type);var o=new XMLHttpRequest;o.upload.addEventListener("progress",a,!1),o.addEventListener("load",function(){h(o)},!1),o.addEventListener("error",m,!1),o.addEventListener("abort",m,!1),o.open("POST",d.appUri(e+"/data")),o.send(n)},b.setFile=function(a){l=a.files[0]}}];b.exports={template:d,controller:e}},{}],9:[function(a,b,c){(function(a){"use strict";var c="undefined"!=typeof window?window.angular:"undefined"!=typeof a?a.angular:null,d=["$scope","processData","ProcessDefinitionResource",function(a,b,d){b.provide("processDefinitionsWithRootIncidents",function(){return d.queryStatistics({rootIncidents:!0}).$promise}),b.provide("processDefinitions",function(){return d.queryStatistics({incidents:!0}).$promise}),b.provide("processDefinitionStatistics",["processDefinitions",function(a){return e(a)}]),b.provide("processDefinitionWithRootIncidentsStatistics",["processDefinitionsWithRootIncidents",function(a){return e(a)}]);var e=function(a){var b=[],d=[];return c.forEach(a,function(a){var e=b[a.definition.key];e||(b[a.definition.key]=[]);var f=b[a.definition.key][a.definition.tenantId];f?(a.definition.version>f.definition.version&&(f.definition=a.definition,f.id=a.id,f.definition.name=f.definition.name||f.definition.key),f.instances+=a.instances,f.failedJobs+=a.failedJobs,c.forEach(a.incidents,function(a){for(var b=a.incidentType,c=a.incidentCount,d=!0,e=0;e",controller:function(){},checkActive:function(a){var b="#/batch",c=(a||"").split("?");return c.length&&c[0].slice(0-b.length)===b},priority:-5})}]},{}],18:[function(a,b,c){"use strict";b.exports=["ViewsProvider",function(a){a.registerDefaultView("cockpit.navigation",{id:"decisions",label:"COCKPIT_DECISIONS",pagePath:"#/decisions",checkActive:function(a){return a.indexOf("#/decision")>-1},template:"",controller:function(){},priority:90})}]},{}],19:[function(a,b,c){"use strict";b.exports=["ViewsProvider",function(a){a.registerDefaultView("cockpit.navigation",{id:"deployments",label:"COCKPIT_DEPLOYMENTS",pagePath:"#/repository",template:"",controller:function(){},priority:-5})}]},{}],20:[function(a,b,c){"use strict";b.exports=["ViewsProvider",function(a){a.registerDefaultView("cockpit.navigation",{id:"proceses",label:"COCKPIT_PROCESSES",pagePath:"#/processes",checkActive:function(a){return a.indexOf("#/process")>-1||a.indexOf("#/migration")>-1},template:"",controller:function(){},priority:100})}]},{}],21:[function(a,b,c){"use strict";b.exports=["ViewsProvider",function(a){a.registerDefaultView("cockpit.navigation",{id:"reports",label:"COCKPIT_REPORTS",pagePath:"#/reports",template:"",controller:function(){},access:["Views",function(a){return function(b){var c=a.getProviders({component:"cockpit.report"});b(null,!!c.length)}}],priority:-4})}]},{}],22:[function(a,b,c){"use strict";b.exports=["ViewsProvider",function(a){a.registerDefaultView("cockpit.navigation",{id:"tasks",label:"COCKPIT_HUMAN_TASKS",template:"",pagePath:"#/tasks",checkActive:function(a){return a.indexOf("#/tasks")>-1},controller:function(){},priority:20})}]},{}],23:[function(a,b,c){(function(c){"use strict";var d="undefined"!=typeof window?window.angular:"undefined"!=typeof c?c.angular:null,e="undefined"!=typeof window?window["cam-common"]:"undefined"!=typeof c?c["cam-common"]:null,f=a("./processInstance/diagramPlugins"),g=a("./processDefinition/diagramPlugins"),h=a("./dashboard/deployments"),i=a("./dashboard/reports"),j=a("./dashboard/batches"),k=a("./dashboard/processes"),l=a("./dashboard/decisions"),m=a("./dashboard/tasks"),n=a("./processesDashboard/process-definitions"),o=a("./processDefinition/processInstanceTable"),p=a("./processDefinition/calledProcessDefinitionTable"),q=a("./processDefinition/updateSuspensionStateAction"),r=a("./processDefinition/updateSuspensionStateDialog"),s=a("./processDefinition/pdIncidentsTab"),t=a("./processInstance/variableInstancesTab"),u=a("./processInstance/incidentsTab"),v=a("./processInstance/calledProcessInstanceTable"),w=a("./processInstance/userTasksTable"),x=a("./processInstance/jobRetryBulkAction"),y=a("./processInstance/jobRetryBulkDialog"),z=a("./processInstance/jobRetryDialog"),A=a("./processInstance/externalTaskRetryDialog"),B=a("./processInstance/cancelProcessInstanceAction"),C=a("./processInstance/cancelProcessInstanceDialog"),D=a("./processInstance/addVariableAction"),E=a("./processInstance/updateSuspensionStateAction"),F=a("./processInstance/updateSuspensionStateDialog"),G=a("./processInstance/incidentJobRetryAction"),H=a("./processInstance/incident-externalTask-retry-action"),I=d.module("cockpit.plugin.base.views",[e.name,f.name,g.name]);I.config(h),I.config(i),I.config(j),I.config(k),I.config(l),I.config(m),I.config(n),I.config(o),I.config(p),I.config(q),I.controller("UpdateProcessDefinitionSuspensionStateController",r),I.config(s),t(I),I.config(u),v(I),w(I),x(I),I.controller("JobRetriesController",y),I.controller("JobRetryController",z),I.controller("ExternalTaskRetryController",A),B(I),I.controller("CancelProcessInstanceController",C),I.config(D),I.config(E),I.controller("UpdateProcessInstanceSuspensionStateController",F),I.config(G),I.config(H),b.exports=I}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./dashboard/batches":17,"./dashboard/decisions":18,"./dashboard/deployments":19,"./dashboard/processes":20,"./dashboard/reports":21,"./dashboard/tasks":22,"./processDefinition/calledProcessDefinitionTable":24,"./processDefinition/diagramPlugins":25,"./processDefinition/pdIncidentsTab":27,"./processDefinition/processInstanceTable":28,"./processDefinition/updateSuspensionStateAction":29,"./processDefinition/updateSuspensionStateDialog":30,"./processInstance/addVariableAction":31,"./processInstance/calledProcessInstanceTable":32,"./processInstance/cancelProcessInstanceAction":33,"./processInstance/cancelProcessInstanceDialog":34,"./processInstance/diagramPlugins":36,"./processInstance/externalTaskRetryDialog":38,"./processInstance/incident-externalTask-retry-action":39,"./processInstance/incidentJobRetryAction":40,"./processInstance/incidentsTab":41,"./processInstance/jobRetryBulkAction":42,"./processInstance/jobRetryBulkDialog":43,"./processInstance/jobRetryDialog":44,"./processInstance/updateSuspensionStateAction":45,"./processInstance/updateSuspensionStateDialog":46,"./processInstance/userTasksTable":47,"./processInstance/variableInstancesTab":48,"./processesDashboard/process-definitions":49}],24:[function(a,b,c){(function(c){"use strict";var d="undefined"!=typeof window?window.angular:"undefined"!=typeof c?c.angular:null,e=a("../../../../../../common/scripts/util/search-widget-utils"),f='\n
\n \n \n \n \n \n \n\n \n \n \n
\n \n {{ calledProcessDefinition.label }}\n \n \n \n \n {{ calledProcessDefinition.calledFromActivities[0].name }}\n \n \n\n
\n
\n\n'; b.exports=["ViewsProvider",function(a){a.registerDefaultView("cockpit.processDefinition.runtime.tab",{id:"call-process-definitions-table",label:"PLUGIN_CALLED_PROCESS_DEFINITIONS_LABEL",template:f,controller:["$scope","$location","$q","PluginProcessDefinitionResource","$translate","localConf",function(a,b,c,f,g,h){function i(a){h.set("sortCalledProcessDefTab",a)}function j(a){return h.get("sortCalledProcessDefTab",a)}function k(a,b){var c=[];return d.forEach(a,function(a){var e=a.calledFromActivityIds,f=[];d.forEach(e,function(a){var c=b[a],d={id:a,name:c&&c.name||a};f.push(d)}),c.push(d.extend({},a,{calledFromActivities:f}))}),c}var l,m=a.processData.newChild(a);a.headColumns=[{"class":"process-definition",request:"label",sortable:!0,content:g.instant("PLUGIN_CALLED_PROCESS")},{"class":"activity",request:"name",sortable:!0,content:g.instant("PLUGIN_ACTIVITY")}],a.sortObj=j({sortBy:"key",sortOrder:"asc",sortReverse:!1}),a.onSortChange=function(b){b=b||a.sortObj,b.sortReverse="asc"!==b.sortOrder,i(b),a.sortObj=b},a.getSearchQueryForSearchType=e.getSearchQueryForSearchType.bind(null,"activityIdIn"),m.provide("calledProcessDefinitions",["processDefinition","filter",function(b,c){return l=d.copy(c),delete l.page,delete l.scrollToBpmnElement,l.superProcessDefinitionId=l.parentProcessDefinitionId,l.parentProcessDefinitionId=a.processDefinition.id,l.activityIdIn=l.activityIds,delete l.activityIds,a.loadingState="LOADING",f.getCalledProcessDefinitions({id:b.id},l).$promise}]),m.observe(["calledProcessDefinitions","bpmnElements"],function(b,c){a.calledProcessDefinitions=k(b,c).map(function(a){return d.extend({},a,{label:a.name||a.key})}),a.loadingState=a.calledProcessDefinitions.length?"LOADED":"EMPTY"})}],priority:5})}]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../../../../../common/scripts/util/search-widget-utils":86}],25:[function(a,b,c){(function(c){"use strict";var d="undefined"!=typeof window?window.angular:"undefined"!=typeof c?c.angular:null,e="undefined"!=typeof window?window["cam-common"]:"undefined"!=typeof c?c["cam-common"]:null,f=a("./instanceCount"),g=d.module("cockpit.plugin.base.views.definition.diagram-plugins",[e.name]);g.config(f),b.exports=g}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./instanceCount":26}],26:[function(a,b,c){"use strict";var d=a("../../common/diagramPlugins/instanceCount");b.exports=["ViewsProvider",function(a){a.registerDefaultView("cockpit.processDefinition.diagram.plugin",{id:"activity-instance-statistics-overlay",overlay:["$scope","control","processData","processDiagram","Loaders","get","$filter","$rootScope","$translate",function(a,b,c,e,f,g,h,i,j){function k(a){c.observe(["activityInstanceStatistics"],function(b){a([b])})}function l(a){return a.instances||a.incidents}function m(a,b){var c=n(b,a.id),d=n(b,a.id+"#multiInstanceBody"),e=g(c,["incidents"],[]),f=g(d,["incidents"],[]),h=e.concat(f),i=q(h);return{instances:g(c,["instances"],0)+g(d,["instances"],0),incidents:i}}function n(a,b){return a.filter(function(a){return a.id===b})[0]}function o(a,b){a.instancesNode.text(h("abbreviateNumber")(b.instances)),a.incidentsNode.text(h("abbreviateNumber")(b.incidents)),b.instances<=0?a.instancesNode.hide():(a.instancesNode.show(),a.instancesNode.tooltip({container:"body",title:j.instant("PLUGIN_ACTIVITY_INSTANCE_RUNNING_ACTIVITY_INSTANCES"),placement:"top",animation:!1})),b.incidents?(a.incidentsNode.show(),a.incidentsNode.tooltip({container:"body",title:j.instant("PLUGIN_ACTIVITY_INSTANCE_OPEN_INCIDENTS"),placement:"top",animation:!1})):a.incidentsNode.hide()}var p={observe:k,getData:m,updateOverlayNodes:o,isActive:l};d(a,b,c,e,f,i,p);var q=function(a){return a?a.reduce(function(a,b){return a+b.incidentCount},0):0}}]})}]},{"../../common/diagramPlugins/instanceCount":16}],27:[function(a,b,c){"use strict";var d='\n',e=function(a){a.registerDefaultView("cockpit.processDefinition.runtime.tab",{id:"pd-incidents-tab",label:"PLUGIN_INCIDENTS_LABEL",template:d,priority:9,controller:function(){}})};e.$inject=["ViewsProvider"],b.exports=e},{}],28:[function(a,b,c){(function(a){"use strict";var c="undefined"!=typeof window?window.angular:"undefined"!=typeof a?a.angular:null,d='\n
\n\n \n\n \n \n\n \n \n \n\n \n\n \n\n \n \n \n \n
\n \n \n \n \n \n \n {{ processInstance.id }}\n \n \n {{ processInstance.startTime | camDate }}\n \n {{ processInstance.businessKey }}\n
\n
\n\n\n',e=JSON.parse('{\n "types": [\n {\n "id": {\n "key": "businessKey",\n "value": "PROCESS_INSTANCE_ID_BUSINESS_KEY"\n },\n "default": true,\n "operators": [\n {\n "key": "eq",\n "value": "="\n }\n ]\n },\n {\n "id": {\n "key": "activityIdIn",\n "value": "PROCESS_INSTANCE_ID_ACTIVITY_ID"\n },\n "operators": [\n {\n "key": "eq",\n "value": "="\n }\n ]\n },\n {\n "id": {\n "key": "startedDate",\n "value": "PROCESS_INSTANCE_ID_START_DATE"\n },\n "operators": [\n {\n "key": "Before",\n "value": "PROCESS_INSTANCE_OPERATOR_BEFORE"\n },\n {\n "key": "After",\n "value": "PROCESS_INSTANCE_OPERATOR_AFTER"\n }\n ],\n "allowDates": true,\n "enforceDates": true\n },\n {\n "id": {\n "key": "variables",\n "value": "PROCESS_INSTANCE_ID_VARIABLE"\n },\n "extended": true,\n "operators": [\n {\n "key": "eq",\n "value": "="\n },\n {\n "key": "neq",\n "value": "!="\n },\n {\n "key": "gt",\n "value": ">"\n },\n {\n "key": "gteq",\n "value": ">="\n },\n {\n "key": "lt",\n "value": "<"\n },\n {\n "key": "lteq",\n "value": "<="\n },\n {\n "key": "like",\n "value": "PROCESS_INSTANCE_OPERATOR_LIKE"\n }\n ]\n }\n ],\n "operators": {\n "undefined": [\n {\n "key": "eq",\n "value": "="\n },\n {\n "key": "neq",\n "value": "!="\n },\n {\n "key": "gt",\n "value": ">"\n },\n {\n "key": "gteq",\n "value": ">="\n },\n {\n "key": "lt",\n "value": "<"\n },\n {\n "key": "lteq",\n "value": "<="\n },\n {\n "key": "like",\n "value": "PROCESS_INSTANCE_OPERATOR_LIKE"\n }\n ],\n "string": [\n {\n "key": "eq",\n "value": "="\n },\n {\n "key": "neq",\n "value": "!="\n },\n {\n "key": "gt",\n "value": ">"\n },\n {\n "key": "gteq",\n "value": ">="\n },\n {\n "key": "lt",\n "value": "<"\n },\n {\n "key": "lteq",\n "value": "<="\n },\n {\n "key": "like",\n "value": "PROCESS_INSTANCE_OPERATOR_LIKE"\n }\n ],\n "number": [\n {\n "key": "eq",\n "value": "="\n },\n {\n "key": "neq",\n "value": "!="\n },\n {\n "key": "gt",\n "value": ">"\n },\n {\n "key": "gteq",\n "value": ">="\n },\n {\n "key": "lt",\n "value": "<"\n },\n {\n "key": "lteq",\n "value": "<="\n }\n ],\n "boolean": [\n {\n "key": "eq",\n "value": "="\n },\n {\n "key": "neq",\n "value": "!="\n }\n ],\n "object": [{\n "key": "eq",\n "value": "="\n },\n {\n "key": "neq",\n "value": "!="\n }],\n "date": [{\n "key": "lteq",\n "value": "PROCESS_INSTANCE_OPERATOR_BEFORE"\n },\n {\n "key": "gteq",\n "value": "PROCESS_INSTANCE_OPERATOR_AFTER"\n }]\n },\n "tooltips": {\n "inputPlaceholder": "PROCESS_INSTANCE_ADD_CRITERIA",\n "invalid": "PROCESS_INSTANCE_INVALID",\n "deleteSearch": "PROCESS_INSTANCE_DELETE_SEARCH",\n "type": "PROCESS_INSTANCE_TYPE",\n "name": "PROCESS_INSTANCE_NAME",\n "operator": "PROCESS_INSTANCE_OPERATOR",\n "value": "PROCESS_INSTANCE_VALUE"\n }\n}\n');b.exports=["ViewsProvider",function(a){a.registerDefaultView("cockpit.processDefinition.runtime.tab",{id:"process-instances-table",label:"PLUGIN_PROCESS_INSTANCES_LABEL",template:d,controller:["$scope","$location","search","routeUtil","PluginProcessInstanceResource","$translate","localConf",function(a,b,d,f,g,h,i){function j(b,d,e){a.pagesObj=d||a.pagesObj,a.queryObj=b||a.queryObj,e=e||a.sortObj,k(e);var f=a.pagesObj.current,h=a.queryObj,i=a.pagesObj.size,j=(f-1)*i,l={processDefinitionId:m.id},n={firstResult:j,maxResults:i,sortBy:e.sortBy,sortOrder:e.sortOrder},o=c.extend({},h,l),p=c.extend({},h,n,l);return a.processInstances=null,a.loadingState="LOADING",g.count(o).$promise.then(function(b){var c=b.count;return g.query(n,p).$promise.then(function(b){return a.processInstances=b,a.loadingState=b.length?"LOADED":"EMPTY",c})})}function k(a){i.set("sortProcInst",a)}function l(a){return i.get("sortProcInst",a)}var m=a.processDefinition;a.onSearchChange=j,a.onSortChange=j,a.headColumns=[{"class":"state",request:"state",sortable:!1,content:h.instant("PLUGIN_PROCESS_INSTANCE_STATE")},{"class":"instance-id",request:"instanceId",sortable:!1,content:h.instant("PLUGIN_PROCESS_INSTANCE_ID")},{"class":"start-time",request:"startTime",sortable:!0,content:h.instant("PLUGIN_PROCESS_INSTANCE_START_TIME")},{"class":"business-key",request:"businessKey",sortable:!1,content:h.instant("PLUGIN_PROCESS_INSTANCE_BUSINESS_KEY")}];var n={sortBy:"startTime",sortOrder:"desc"};a.sortObj=l(n),a.searchConfig=c.copy(e),c.forEach(e.tooltips,function(b,c){a.searchConfig.tooltips[c]=h.instant(b)}),a.searchConfig.types.map(function(a){return a.id.value=h.instant(a.id.value),a.operators&&(a.operators=a.operators.map(function(a){return a.value=h.instant(a.value),a})),a}),a.getProcessInstanceUrl=function(a,d){var e="#/process-instance/"+a.id,g=c.extend({},b.search()||{},d||{}),h=["viewbox"];for(var i in d)h.push(i);return f.redirectTo(e,g,h)}}],priority:10})}]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],29:[function(a,b,c){(function(a){"use strict";var c='\n\n \n\n\n\n \n\n\n',d='\n\n\n\n\n\n\n',e="undefined"!=typeof window?window.angular:"undefined"!=typeof a?a.angular:null;b.exports=["ViewsProvider",function(a){a.registerDefaultView("cockpit.processDefinition.runtime.action",{id:"update-suspension-state-action",label:"PLUGIN_UPDATE_SUSPENSION_STATE",template:c,controller:["$scope","$rootScope","$modal",function(a,b,c){a.openDialog=function(){var f=c.open({resolve:{processData:function(){return a.processData},processDefinition:function(){return a.processDefinition}},controller:"UpdateProcessDefinitionSuspensionStateController",template:d});f.result.then(function(c){"SUCCESS"===c.status&&(c.executeImmediately&&(a.processDefinition.suspended=c.suspended,b.$broadcast("$processDefinition.suspensionState.changed",a.processDefinition)),a.processData.set("filter",e.extend({},a.filter)))})}}],priority:50})}]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],30:[function(a,b,c){(function(a){"use strict";var c="undefined"!=typeof window?window.angular:"undefined"!=typeof a?a.angular:null;b.exports=["$scope","$http","$filter","Uri","Notifications","$modalInstance","processDefinition","fixDate","$translate",function(a,b,d,e,f,g,h,i,j){var k="BEFORE_UPDATE",l="PERFORM_UDPATE",m="SUCCESS",n="FAIL",o=d("date"),p="yyyy-MM-dd'T'HH:mm:ss";a.processDefinition=h,a.status=k,a.data={includeInstances:!0,executeImmediately:!0,executionDate:o(Date.now(),p)},a.$on("$routeChangeStart",function(){g.close(a.status)}),a.updateSuspensionState=function(){a.status=l;var c={};c.suspended=!h.suspended,c.includeProcessInstances=a.data.includeInstances,c.executionDate=a.data.executeImmediately?null:i(a.data.executionDate),b.put(e.appUri("engine://engine/:engine/process-definition/"+h.id+"/suspended/"),c).success(function(){a.status=m,a.data.executeImmediately?f.addMessage({status:j.instant("PLUGIN_UPDATE_SUSPENSION_STATE_STATUS_FINISHED"),message:j.instant("PLUGIN_UPDATE_SUSPENSION_STATE_MESSAGE_1"),exclusive:!0}):f.addMessage({status:j.instant("PLUGIN_UPDATE_SUSPENSION_STATE_STATUS_FINISHED"),message:j.instant("PLUGIN_UPDATE_SUSPENSION_STATE_MESSAGE_2"),exclusive:!0})}).error(function(b){a.status=n;var c;c=a.data.executeImmediately?j.instant("PLUGIN_UPDATE_SUSPENSION_STATE_MESSAGE_3",{message:b.message}):j.instant("PLUGIN_UPDATE_SUSPENSION_STATE_MESSAGE_4",{message:b.message}),f.addError({status:j.instant("PLUGIN_UPDATE_SUSPENSION_STATE_STATUS_FINISHED"),message:c,exclusive:!0})})},a.isValid=function(){var a=c.element('[name="updateSuspensionStateForm"]').scope();return!(!a||!a.updateSuspensionStateForm)&&a.updateSuspensionStateForm.$valid},a.close=function(b){var c={};c.status=b,c.suspended=!h.suspended,c.executeImmediately=a.data.executeImmediately,c.executionDate=a.data.executionDate,g.close(c)}}]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],31:[function(a,b,c){(function(c){"use strict";var d="undefined"!=typeof window?window.angular:"undefined"!=typeof c?c.angular:null,e='\n\n \n\n\n',f=a("../../../../../client/scripts/components/variables/variable-add-dialog"),g=function(a){a.registerDefaultView("cockpit.processInstance.runtime.action",{id:"add-variable-action",label:"Add Variable Action",template:e,controller:["$scope","$modal","$rootScope",function(a,b,c){a.openDialog=function(){var e=b.open({scope:a,resolve:{instance:function(){return a.processInstance},isProcessInstance:function(){return!0}},controller:f.controller,template:f.template});e.result.then(function(b){"SUCCESS"===b&&(a.processData.set("filter",d.extend({},a.filter)),c.$broadcast("cam-common:cam-searchable:query-force-change"))})}}],priority:10})};g.$inject=["ViewsProvider"],b.exports=g}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../../../../client/scripts/components/variables/variable-add-dialog":6}],32:[function(a,b,c){(function(c){"use strict";var d=a("../../../../../../common/scripts/util/search-widget-utils"),e="undefined"!=typeof window?window.angular:"undefined"!=typeof c?c.angular:null,f='\n
\n \n\n \n \n\n \n \n \n \n\n \n\n \n \n \n
\n
\n
\n \n
\n
\n \n {{ calledProcessInstance.id }}\n \n \n \n {{ calledProcessInstance.processDefinitionLabel}}\n \n \n \n \n {{ calledProcessInstance.instance.name }}\n \n \n
\n
\n\n';b.exports=function(a){a.controller("CalledProcessInstanceController",["$scope","PluginProcessInstanceResource","$translate","localConf",function(a,b,c,f){function g(a){f.set("sortCalledProcessInstTab",a)}function h(a){return f.get("sortCalledProcessInstTab",a)}function i(c,d){k=e.copy(c),delete k.page,delete k.activityIds,delete k.scrollToBpmnElement,k.activityInstanceIdIn=k.activityInstanceIds,delete k.activityInstanceIds,a.calledProcessInstances=null,a.loadingState="LOADING",b.processInstances({id:a.processInstance.id},k).$promise.then(function(b){e.forEach(b,function(a){var b=d[a.callActivityInstanceId];a.instance=b,a.processDefinitionLabel=a.processDefinitionName||a.processDefinitionKey}),a.loadingState=b.length?"LOADED":"EMPTY",a.calledProcessInstances=b})}var j=a.processData.newChild(a);a.headColumns=[{"class":"state",request:"incidents",sortable:!0,content:"State"},{"class":"called-process-instance",request:"id",sortable:!0,content:c.instant("PLUGIN_CALLED_PROCESS_PROCESS_INSTANCE")},{"class":"process-definition",request:"processDefinitionLabel",sortable:!0,content:c.instant("PLUGIN_CALLED_PROCESS_PROCESS_DEFINITION")},{"class":"activity",request:"instance.name",sortable:!0,content:c.instant("PLUGIN_CALLED_PROCESS_ACTIVITY")}],a.sortObj=h({sortBy:"processDefinitionLabel",sortOrder:"asc",sortReverse:!1}),a.onSortChange=function(b){b=b||a.sortObj,b.sortReverse="asc"!==b.sortOrder,g(b),a.sortObj=b};var k=null;a.getSearchQueryForSearchType=d.getSearchQueryForSearchType.bind(null,"activityInstanceIdIn"),j.observe(["filter","instanceIdToInstanceMap"],function(a,b){i(a,b)})}]);var b=function(a){a.registerDefaultView("cockpit.processInstance.runtime.tab",{id:"called-process-instances-tab",label:"PLUGIN_CALLED_PROCESS_INSTANCE_LABEL",template:f,controller:"CalledProcessInstanceController",priority:10})};b.$inject=["ViewsProvider"],a.config(b)}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../../../../../common/scripts/util/search-widget-utils":86}],33:[function(a,b,c){"use strict";var d='\n\n\n\n\n\n\n',e='\n\n \n\n\n'; b.exports=function(a){a.controller("CancelProcessInstanceActionController",["$scope","$http","search","Uri","$modal",function(a,b,c,e,f){a.openDialog=function(){f.open({resolve:{processData:function(){return a.processData},processInstance:function(){return a.processInstance}},controller:"CancelProcessInstanceController",template:d})}}]);var b=function(a){a.registerDefaultView("cockpit.processInstance.runtime.action",{id:"cancel-process-instance-action",label:"PLUGIN_CANCEL_PROCESS_DELETE_ACTION",template:e,controller:"CancelProcessInstanceActionController",priority:20})};b.$inject=["ViewsProvider"],a.config(b)}},{}],34:[function(a,b,c){"use strict";b.exports=["$scope","$location","Notifications","ProcessInstanceResource","$modalInstance","processInstance","processData","Views","$translate","configuration",function(a,b,c,d,e,f,g,h,i,j){var k="beforeCancellation",l="performCancellation",m="cancellationSuccess",n="cancellationFailed",o=j.getSkipCustomListeners();a.processInstance=f;var p=g.newChild(a);a.options={skipCustomListeners:o["default"],skipIoMappings:!0},a.hideSkipCustomListeners=o.hidden,a.$on("$routeChangeStart",function(){e.close(a.status)}),p.provide("subProcessInstances",function(){return d.query({firstResult:0,maxResults:5},{superProcessInstance:f.id}).$promise}),p.provide("subProcessInstancesCount",function(){return d.count({superProcessInstance:f.id}).$promise}),p.observe(["subProcessInstancesCount","subProcessInstances"],function(b,c){a.subProcessInstancesCount=b.count,a.subProcessInstances=c,a.status=k}),a.cancelProcessInstance=function(){a.status=l,a.processInstance.$delete(a.options,function(){a.status=m,c.addMessage({status:i.instant("PLUGIN_CANCEL_PROCESS_STATUS_DELETED"),message:i.instant("PLUGIN_CANCEL_PROCESS_MESSAGE_1")})},function(b){a.status=n,c.addError({status:i.instant("PLUGIN_CANCEL_PROCESS_STATUS_FAILED"),message:i.instant("PLUGIN_CANCEL_PROCESS_MESSAGE_2",{message:b.data.message}),exclusive:["type"]})})},a.close=function(a){if(e.close(a),a===m){var c,d,g=h.getProvider({id:"history",component:"cockpit.processInstance.view"});g?(d=b.search(),c="/process-instance/"+f.id+"/history"):c="/process-definition/"+f.definitionId,b.path(c),b.search(d||{}),b.replace()}}}]},{}],35:[function(a,b,c){"use strict";var d=a("../../../../../../client/scripts/components/callActivityOverlay")("runtime");b.exports=["ViewsProvider",function(a){a.registerDefaultView("cockpit.processInstance.diagram.plugin",{id:"activity-instance-call-activity-overlay",overlay:d})}]},{"../../../../../../client/scripts/components/callActivityOverlay":5}],36:[function(a,b,c){(function(c){"use strict";var d="undefined"!=typeof window?window.angular:"undefined"!=typeof c?c.angular:null,e="undefined"!=typeof window?window["cam-common"]:"undefined"!=typeof c?c["cam-common"]:null,f=a("./instanceCount"),g=a("./callActivity"),h=d.module("cockpit.plugin.base.views.instance.diagram-plugins",[e.name]);h.config(f),h.config(g),b.exports=h}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./callActivity":35,"./instanceCount":37}],37:[function(a,b,c){(function(c){"use strict";var d="undefined"!=typeof window?window.angular:"undefined"!=typeof c?c.angular:null,e=a("../../common/diagramPlugins/instanceCount");b.exports=["ViewsProvider",function(a){a.registerDefaultView("cockpit.processInstance.diagram.plugin",{id:"activity-instance-statistics-overlay",overlay:["$scope","control","processData","processDiagram","Loaders","$filter","$rootScope","$translate",function(a,b,c,f,g,h,i,j){function k(a){return a.instanceCount>0||a.incidents}function l(a){c.observe(["activityIdToInstancesMap","activityIdToIncidentsMap"],function(b,c){a([b,c])})}function m(a,b,c){var e=a.id,f=d.copy(b[e]||[]),g=d.copy(c[e]||[]),h=b[e+"#multiInstanceBody"]||[],i=c[e+"#multiInstanceBody"]||[],j=b[e+"#multiInstanceBody"];return{instanceCount:n({instances:f,instancesMI:h}),incidents:g.length||i.length,multiInstance:j}}function n(a){var b=0;return a.instances&&(b+=a.instances.length||0),a.instancesMI&&(b+=a.instancesMI.filter(function(a){return a.isTransitionInstance}).length||0),b}function o(a,b){a.instancesNode.text(h("abbreviateNumber")(b.instanceCount)),a.incidentsNode.text(h("abbreviateNumber")(b.incidents)),b.instanceCount<=0?a.instancesNode.hide():(a.instancesNode.show(),a.instancesNode.tooltip({container:"body",title:j.instant("PLUGIN_ACTIVITY_INSTANCE_RUNNING_ACTIVITY_INSTANCES"),placement:"top",animation:!1})),b.incidents?(a.incidentsNode.show(),a.incidentsNode.tooltip({container:"body",title:j.instant("PLUGIN_ACTIVITY_INSTANCE_OPEN_INCIDENTS"),placement:"top",animation:!1})):a.incidentsNode.hide()}var p={observe:l,getData:m,updateOverlayNodes:o,isActive:k};e(a,b,c,f,g,i,p)}]})}]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../common/diagramPlugins/instanceCount":16}],38:[function(a,b,c){"use strict";b.exports=["$scope","$location","Notifications","camAPI","$modalInstance","incident","$translate",function(a,b,c,d,e,f,g){var h="finished",i="performing",j="failed",k=d.resource("external-task");a.$on("$routeChangeStart",function(){e.close(a.status)}),a.incrementRetry=function(){a.status=i,k.retries({id:f.configuration,retries:1},function(b){b?(a.status=j,c.addError({status:g.instant("PLUGIN_EXTERNAL_TASK_STATUS_FINISHED"),message:g.instant("PLUGIN_EXTERNAL_TASK_MESSAGE_2",{message:b.message}),exclusive:!0})):(a.status=h,c.addMessage({status:g.instant("PLUGIN_EXTERNAL_TASK_STATUS_FINISHED"),message:g.instant("PLUGIN_EXTERNAL_TASK_MESSAGE_1"),exclusive:!0}))})},a.close=function(a){e.close(a)}}]},{}],39:[function(a,b,c){(function(a){"use strict";var c="undefined"!=typeof window?window.angular:"undefined"!=typeof a?a.angular:null,d='\n\n \n\n',e="\n
\n

{{ 'PLUGIN_JOB_RETRY_LEGEND_1' | translate }}

\n
\n\n
\n
\n\n
\n

{{ 'PLUGIN_JOB_RETRY_LEGEND_2' | translate }}

\n

{{ 'PLUGIN_JOB_RETRY_LEGEND_3' | translate }}

\n
\n\n
\n {{ 'PLUGIN_JOB_RETRY_LEGEND_4' | translate }}\n
\n\n
\n {{ 'PLUGIN_JOB_RETRY_LEGEND_5' | translate }}\n
\n\n
\n\n
\n \n\n \n\n \n
\n\n",f=function(a){a.registerDefaultView("cockpit.incident.action",{id:"increase-incident-external-task-retry",template:d,controller:["$scope","$rootScope","search","$modal",function(a,b,d,f){a.openExternalTaskRetryDialog=function(b){var d=f.open({resolve:{incident:function(){return b}},controller:"ExternalTaskRetryController",template:e});d.result.then(function(b){"finished"===b&&a.processData.set("filter",c.extend({},a.filter))})}}],priority:50})};f.$inject=["ViewsProvider"],b.exports=f}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],40:[function(a,b,c){(function(a){"use strict";var c="undefined"!=typeof window?window.angular:"undefined"!=typeof a?a.angular:null,d='\n\n \n\n',e="\n
\n

{{ 'PLUGIN_JOB_RETRY_LEGEND_1' | translate }}

\n
\n\n
\n
\n\n
\n

{{ 'PLUGIN_JOB_RETRY_LEGEND_2' | translate }}

\n

{{ 'PLUGIN_JOB_RETRY_LEGEND_3' | translate }}

\n
\n\n
\n {{ 'PLUGIN_JOB_RETRY_LEGEND_4' | translate }}\n
\n\n
\n {{ 'PLUGIN_JOB_RETRY_LEGEND_5' | translate }}\n
\n\n
\n\n
\n \n\n \n\n \n
\n\n",f=function(a){a.registerDefaultView("cockpit.incident.action",{id:"increase-incident-job-retry",template:d,controller:["$scope","$rootScope","search","$modal",function(a,b,d,f){a.openJobRetryDialog=function(b){var d=f.open({resolve:{incident:function(){return b}},controller:"JobRetryController",template:e});d.result.then(function(b){"finished"===b&&a.processData.set("filter",c.extend({},a.filter))})}}],priority:50})};f.$inject=["ViewsProvider"],b.exports=f}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],41:[function(a,b,c){"use strict";var d='\n',e=function(a){a.registerDefaultView("cockpit.processInstance.runtime.tab",{id:"incidents-tab",label:"PLUGIN_INCIDENTS_LABEL",template:d,priority:15})};e.$inject=["ViewsProvider"],b.exports=e},{}],42:[function(a,b,c){"use strict";var d='\n\n\n\n\n\n\n',e='\n\n \n\n\n';b.exports=function(a){a.controller("JobRetryActionController",["$scope","$modal",function(a,b){a.openDialog=function(){b.open({resolve:{processData:function(){return a.processData},processInstance:function(){return a.processInstance}},size:"lg",controller:"JobRetriesController",template:d})}}]);var b=function(a){a.registerDefaultView("cockpit.processInstance.runtime.action",{id:"job-retry-action",label:"Job Retry Action",template:e,controller:"JobRetryActionController",priority:15})};b.$inject=["ViewsProvider"],a.config(b)}},{}],43:[function(a,b,c){(function(a){"use strict";var c="undefined"!=typeof window?window.angular:"undefined"!=typeof a?a.angular:null;b.exports=["$scope","$q","Notifications","JobResource","$modalInstance","processData","processInstance","$translate",function(a,b,d,e,f,g,h,i){function j(b){a.failedJobs=null,a.allJobsSelected=!1,a.loadingState="LOADING";var c=n.size,d=(b-1)*c;e.count({processInstanceId:h.id,withException:!0,noRetriesLeft:!0}).$promise.then(function(b){return n.total=b.count,n.total?void e.query({firstResult:d,maxResults:c},{processInstanceId:h.id,withException:!0,noRetriesLeft:!0}).$promise.then(function(b){for(var d,e=0;d=b[e];e++){p[d.id]=d;var f=w[d.executionId];d.instance=f,d.selected=q.indexOf(d.id)>-1}a.failedJobs=b,a.loadingState="LOADED",n.total<=c&&(a.allJobsSelected=!0,a.selectAllJobs(!0))}):void(a.loadingState="EMPTY")})}function k(b){for(var c=o.size,d=(b-1)*c,e=a.showJobsRetried=[],f=0;f\n \n\n\n \n\n\n',d="\n
\n

{{ (processInstance.suspended ? 'PLUGIN_UPDATE_DIALOG_ACTIVATE' : 'PLUGIN_UPDATE_DIALOG_SUSPEND' | translate) }}

\n
\n\n
\n
\n\n
\n\n
\n \n

\n {{ 'PLUGIN_UPDATE_DIALOG_LEGEND_1' | translate}} {{ 'PLUGIN_UPDATE_DIALOG_LEGEND_2' | translate }} {{ 'PLUGIN_UPDATE_DIALOG_LEGEND_3' | translate }}\n

\n\n

\n {{ 'PLUGIN_UPDATE_DIALOG_LEGEND_4' | translate}}\n

\n\n

\n {{ 'PLUGIN_UPDATE_DIALOG_LEGEND_5' | translate}}\n

\n\n

\n {{ 'PLUGIN_UPDATE_DIALOG_LEGEND_6' | translate}}\n

\n\n

{{ 'PLUGIN_UPDATE_DIALOG_LEGEND_7' | translate}}

\n
\n\n
\n \n

\n {{ 'PLUGIN_UPDATE_DIALOG_LEGEND_8' | translate }} {{ 'PLUGIN_UPDATE_DIALOG_LEGEND_9' | translate }} {{ 'PLUGIN_UPDATE_DIALOG_LEGEND_10' | translate }}\n

\n\n

\n {{ 'PLUGIN_UPDATE_DIALOG_LEGEND_11' | translate }}\n

    \n
  • {{ 'PLUGIN_UPDATE_DIALOG_CLAIMING' | translate }}
  • \n
  • {{ 'PLUGIN_UPDATE_DIALOG_COMPLETING' | translate }}
  • \n
  • {{ 'PLUGIN_UPDATE_DIALOG_DELEGATION' | translate }}
  • \n
  • {{ 'PLUGIN_UPDATE_DIALOG_CHANGES_IN' | translate }}
  • \n
\n {{ 'PLUGIN_UPDATE_DIALOG_LEGEND_12' | translate }}\n

\n\n

\n {{ 'PLUGIN_UPDATE_DIALOG_LEGEND_13' | translate }}\n

\n\n

\n {{ 'PLUGIN_UPDATE_DIALOG_LEGEND_14' | translate }}\n

\n\n

{{ 'PLUGIN_UPDATE_DIALOG_LEGEND_15' | translate }}

\n
\n\n
\n\n
\n

\n {{ 'PLUGIN_UPDATE_DIALOG_LEGEND_16' | translate }}\n

\n

\n {{ 'PLUGIN_UPDATE_DIALOG_LEGEND_17' | translate }}\n

\n
\n\n
\n

\n {{ 'PLUGIN_UPDATE_DIALOG_LEGEND_18' | translate }}\n

\n

\n {{ 'PLUGIN_UPDATE_DIALOG_LEGEND_19' | translate }}\n

\n
\n\n
\n
\n \n\n \n\n \n
\n\n",e="undefined"!=typeof window?window.angular:"undefined"!=typeof a?a.angular:null,f=function(a){a.registerDefaultView("cockpit.processInstance.runtime.action",{id:"update-suspension-state-action",label:"PLUGIN_UPDATE_SUSPENSION_STATE",template:c,controller:["$scope","$rootScope","$modal",function(a,b,c){a.openDialog=function(){var f=c.open({resolve:{processData:function(){return a.processData},processInstance:function(){return a.processInstance}},controller:"UpdateProcessInstanceSuspensionStateController",template:d});f.result.then(function(c){"SUCCESS"===c.status&&(a.processInstance.suspended=c.suspended,b.$broadcast("$processInstance.suspensionState.changed",a.processInstance),a.processData.set("filter",e.extend({},a.filter)))})}}],priority:5})};f.$inject=["ViewsProvider"],b.exports=f}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],46:[function(a,b,c){"use strict";b.exports=["$scope","$http","$filter","Uri","Notifications","$modalInstance","processInstance","$translate",function(a,b,c,d,e,f,g,h){var i="BEFORE_UPDATE",j="PERFORM_UDPATE",k="SUCCESS",l="FAIL";a.processInstance=g,a.status=i,a.$on("$routeChangeStart",function(){f.close(a.status)}),a.updateSuspensionState=function(){a.status=j;var c={};c.suspended=!g.suspended,b.put(d.appUri("engine://engine/:engine/process-instance/"+g.id+"/suspended/"),c).success(function(){a.status=k,e.addMessage({status:h.instant("PLUGIN_UPDATE_DIALOG_STATUS_FINISHED"),message:h.instant("PLUGIN_UPDATE_DIALOG_MESSAGES_1"),exclusive:!0})}).error(function(b){a.status=l,e.addError({status:h.instant("PLUGIN_UPDATE_DIALOG_STATUS_FINISHED"),message:h.instant("PLUGIN_UPDATE_DIALOG_ERROR_1",{message:b.message}),exclusive:!0})})},a.close=function(a){var b={};b.status=a,b.suspended=!g.suspended,f.close(b)}}]},{}],47:[function(a,b,c){(function(c){"use strict";var d=a("../../../../../../common/scripts/util/search-widget-utils"),e="undefined"!=typeof window?window.angular:"undefined"!=typeof c?c.angular:null,f='\n\n\n\n\n\n\n',g='\n
\n \n \n \n\n \n \n \n\n \n\n \n\n \n \n \n \n \n \n\n \n \n \n
\n {{ userTask.instance.name || userTask.instance.id }}\n \n \n \n {{ userTask.owner }}\n \n {{ userTask.created | camDate }}\n \n {{ userTask.due | camDate }}\n \n {{ userTask.priority }}\n \n {{ userTask.delegationState }}\n \n {{ userTask.id }}\n \n \n \n \n \n \n \n
\n\n\n \n
\n\n'; b.exports=function(a){function b(a,b){var c=[];return e.forEach(a,function(a,d){c[d]=b(a,d)}),c}function c(a){var b=[];return e.forEach(a,function(a){a&&b.push(a)}),b}function h(a){return e.isFunction(a)?a:e.noop}a.controller("UserTaskController",["$scope","search","camAPI","TaskResource","Notifications","$modal","$translate","localConf",function(a,g,i,j,k,l,m,n){function o(a){return n.get("sortPIUserTaskTab",a)}function p(a){n.set("sortPIUserTaskTab",a)}function q(b,c,d){x=e.copy(b),delete x.page,delete x.activityIds,delete x.scrollToBpmnElement;var f=w.current,g=w.size,h=(f-1)*g,i={processInstanceId:u.id,processDefinitionId:u.definitionId,sorting:[{sortBy:d.sortBy,sortOrder:d.sortOrder}]},k={firstResult:h,maxResults:g},l=e.extend({},x,i);l.activityInstanceIdIn=l.activityInstanceIds,delete l.activityInstanceIds,a.userTasks=null,a.loadingState="LOADING",r={},s={},j.count(l).$promise.then(function(a){w.total=a.count}),j.query(k,l).$promise.then(function(b){for(var d,f=0;d=b[f];f++)d.instance=c[d.executionId],s[d.id]=e.copy(d);a.userTasks=b,a.loadingState=b.length?"LOADED":"EMPTY"})}var r,s,t=a.processData.newChild(a),u=a.processInstance,v={size:50,total:0,current:1},w=a.pages=e.copy(v),x=null,y=null,z=i.resource("task"),A=a.sorting=o({sortBy:"created",sortOrder:"desc"});a.getSearchQueryForSearchType=d.getSearchQueryForSearchType.bind(null,"activityInstanceIdIn"),a.headColumns=[{"class":"activity uuid",request:"nameCaseInsensitive",sortable:!0,content:m.instant("PLUGIN_USER_TASKS_ACTIVITY")},{"class":"assignee",request:"assignee",sortable:!0,content:m.instant("PLUGIN_USER_TASKS_ASSIGNEE")},{"class":"owner",request:"",sortable:!1,content:m.instant("PLUGIN_USER_TASKS_OWNER")},{"class":"created",request:"created",sortable:!0,content:m.instant("PLUGIN_USER_TASKS_CREATED_DATE")},{"class":"due",request:"dueDate",sortable:!0,content:m.instant("PLUGIN_USER_TASKS_DUE_DATE")},{"class":"follow-up",request:"followUpDate",sortable:!0,content:m.instant("PLUGIN_USER_TASKS_FOLLOW_UP_DATE")},{"class":"priority",request:"priority",sortable:!0,content:m.instant("PLUGIN_USER_TASKS_PRIORITY")},{"class":"delegation-state",request:"",sortable:!1,content:m.instant("PLUGIN_USER_TASKS_DELEGATION_STATE")},{"class":"task-id uuid",request:"id",sortable:!0,content:m.instant("PLUGIN_USER_TASKS_TASK_ID")},{"class":"action",request:"",sortable:!1,content:m.instant("PLUGIN_USER_TASKS_ACTION")}],a.$watch("pages.current",function(a,b){a!=b&&g("page",a&&1!=a?a:null)}),t.observe(["filter","executionIdToInstanceMap"],function(a,b){w.current=a.page||1,y=b,q(a,b,A)}),a.onSortChange=function(a){A=a,p(A),q(x,y,A)},a.getHref=function(b){return b.instance?"#/process-instance/"+u.id+"/runtime?tab=user-tasks-tab&"+a.getSearchQueryForSearchType(b.instance.id):""},a.submitAssigneeChange=function(a,b){b=h(b);var c=a.context,d=s[c.id],e={id:c.id},f={userId:a.value||null};j.setAssignee(e,f).$promise.then(function(a){var e,f=d.assignee=c.assignee=a.userId;e=f?m.instant("PLUGIN_USER_TASKS_MESSAGE_1",{name:c.instance.name,assignee:d.assignee}):m.instant("PLUGIN_USER_TASKS_MESSAGE_2",{name:c.instance.name}),k.addMessage({status:m.instant("PLUGIN_USER_TASKS_STATUS_ASSIGNEE"),message:e,duration:5e3}),b()},function(a){var e;e=c.assignee?m.instant("PLUGIN_USER_TASKS_MESSAGE_3",{name:c.instance.name,assignee:c.assignee,error:a.data.message}):m.instant("PLUGIN_USER_TASKS_MESSAGE_4",{name:c.instance.name,error:a.data.message});var f={status:m.instant("PLUGIN_USER_TASKS_STATUS_ASSIGNEE"),message:e,exclusive:!0};c.assignee=d.assignee,k.addError(f),r[c.id]=a.data,b(f)})},a.openDialog=function(a,d){z.identityLinks(a.id,function(e,g){var h=c(b(g,function(a){var b=a[d.key]&&"assignee"!==a.type&&"owner"!==a.type;return b?a:null}));l.open({resolve:{userTask:function(){return a},identityLinks:function(){return h},decorator:function(){return d}},controller:"IdentityLinksController",template:f,windowClass:"identity-link-modal"})})},a.changeGroupIdentityLinks=function(){var b=this.userTask;a.openDialog(b,{title:m.instant("PLUGIN_USER_TASKS_MANAGE_GROUPS"),table:{label:m.instant("PLUGIN_USER_TASKS_CURRENT_GROUPS"),id:m.instant("PLUGIN_USER_TASKS_GROUP_ID")},add:{label:m.instant("PLUGIN_USER_TASKS_ADD_GROUP")},notifications:{remove:m.instant("PLUGIN_USER_TASKS_NOTIFICATION_REMOVE_GROUP"),add:m.instant("PLUGIN_USER_TASKS_NOTIFICATION_ADD_GROUP")},key:"groupId"})},a.changeUserIdentityLinks=function(){var b=this.userTask;a.openDialog(b,{title:m.instant("PLUGIN_USER_TASKS_MANAGE_USERS"),table:{label:m.instant("PLUGIN_USER_TASKS_CURRENT_USERS"),id:m.instant("PLUGIN_USER_TASKS_USER_ID")},add:{label:m.instant("PLUGIN_USER_TASKS_ADD_USER")},notifications:{remove:m.instant("PLUGIN_USER_TASKS_NOTIFICATION_REMOVE_USER"),add:m.instant("PLUGIN_USER_TASKS_NOTIFICATION_ADD_USER")},key:"userId"})},a.getExceptionForUserTask=function(a){return r[a.id]}}]),a.controller("IdentityLinksController",["$modalInstance","camAPI","$scope","Notifications","userTask","identityLinks","decorator",function(a,d,f,g,h,i,j){var k=d.resource("task");f.identityLinks=i,f.decorator=j,f.title=j.title;var l=f.key=j.key;f.$on("$routeChangeStart",function(){a.close()}),f.removeItem=function(){var a=this.delta;k.identityLinksDelete(h.id,this.identityLink,function(d){return d?g.addError({status:j.notifications.remove,message:d.message,exclusive:!0}):void(i=f.identityLinks=c(b(i,function(b,c){return a!==c&&b})))})},f.invalid=function(){var a=this.editForm;if(a.$invalid)return!0;var b,c=a.newItem.$modelValue;return e.forEach(i,function(a){b=b||a[l]===c}),b},f.addItem=function(){var a=this,b={type:"candidate"};b[l]=a.newItem,k.identityLinksAdd(h.id,b,function(c){return c?g.addError({status:j.notifications.add,message:c.message,exclusive:!0}):(i.push(b),void(a.newItem=""))})}}]);var i=function(a){a.registerDefaultView("cockpit.processInstance.runtime.tab",{id:"user-tasks-tab",label:"PLUGIN_USER_TASKS_LABEL",template:g,controller:"UserTaskController",priority:5})};i.$inject=["ViewsProvider"],a.config(i)}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../../../../../common/scripts/util/search-widget-utils":86}],48:[function(a,b,c){(function(c){"use strict";var d="undefined"!=typeof window?window.angular:"undefined"!=typeof c?c.angular:null,e=a("../../../../../../common/scripts/util/search-widget-utils"),f=JSON.parse('{\n "types": [\n {\n "id": {\n "key": "variableName",\n "value": "PLUGIN_VIEW_VARIABLE_TYPE_VARIABLE_NAME"\n },\n "default": true,\n "operators": [\n {\n "key": "eq",\n "value": "="\n },\n {\n "key": "Like",\n "value": "PLUGIN_VIEW_VARIABLE_OPERATOR_LIKE"\n }\n ]\n },\n {\n "id": {\n "key": "activityInstanceIdIn",\n "value": "PLUGIN_VIEW_VARIABLE_ACTIVITY_INSTANCE_ID"\n },\n "operators": [\n {\n "key": "eq",\n "value": "="\n }\n ]\n },\n {\n "id": {\n "key": "variableValues",\n "value": "PLUGIN_VIEW_VARIABLE_VARIABLE_VALUE"\n },\n "extended": true,\n "operators": [\n {\n "key": "eq",\n "value": "="\n },\n {\n "key": "neq",\n "value": "!="\n },\n {\n "key": "gt",\n "value": ">"\n },\n {\n "key": "gteq",\n "value": ">="\n },\n {\n "key": "lt",\n "value": "<"\n },\n {\n "key": "lteq",\n "value": "<="\n },\n {\n "key": "like",\n "value": "PLUGIN_VIEW_VARIABLE_OPERATOR_LIKE"\n }\n ]\n }\n ],\n "operators": {\n "undefined": [\n {\n "key": "eq",\n "value": "="\n },\n {\n "key": "neq",\n "value": "!="\n },\n {\n "key": "gt",\n "value": ">"\n },\n {\n "key": "gteq",\n "value": ">="\n },\n {\n "key": "lt",\n "value": "<"\n },\n {\n "key": "lteq",\n "value": "<="\n },\n {\n "key": "like",\n "value": "PLUGIN_VIEW_VARIABLE_OPERATOR_LIKE"\n }\n ],\n "string": [\n {\n "key": "eq",\n "value": "="\n },\n {\n "key": "neq",\n "value": "!="\n },\n {\n "key": "gt",\n "value": ">"\n },\n {\n "key": "gteq",\n "value": ">="\n },\n {\n "key": "lt",\n "value": "<"\n },\n {\n "key": "lteq",\n "value": "<="\n },\n {\n "key": "like",\n "value": "PLUGIN_VIEW_VARIABLE_OPERATOR_LIKE"\n }\n ],\n "number": [\n {\n "key": "eq",\n "value": "="\n },\n {\n "key": "neq",\n "value": "!="\n },\n {\n "key": "gt",\n "value": ">"\n },\n {\n "key": "gteq",\n "value": ">="\n },\n {\n "key": "lt",\n "value": "<"\n },\n {\n "key": "lteq",\n "value": "<="\n }\n ],\n "boolean": [\n {\n "key": "eq",\n "value": "="\n },\n {\n "key": "neq",\n "value": "!="\n }\n ],\n "object": [{\n "key": "eq",\n "value": "="\n },\n {\n "key": "neq",\n "value": "!="\n }],\n "date": [{\n "key": "lteq",\n "value": "PLUGIN_VIEW_VARIABLE_OPERATOR_BEFORE"\n },\n {\n "key": "gteq",\n "value": "PLUGIN_VIEW_VARIABLE_OPERATOR_AFTER"\n }]\n },\n "tooltips": {\n "inputPlaceholder": "PLUGIN_VIEW_VARIABLE_ADD_CRITERIA",\n "invalid": "PLUGIN_VIEW_VARIABLE_INVALID",\n "deleteSearch": "PLUGIN_VIEW_VARIABLE_DELETE_SEARCH",\n "type": "PLUGIN_VIEW_VARIABLE_TYPE",\n "name": "PLUGIN_VIEW_VARIABLE_NAME",\n "operator": "PLUGIN_VIEW_VARIABLE_OPERATOR",\n "value": "PLUGIN_VIEW_VARIABLE_VALUE"\n }\n}\n'),g='\n
\n\n
\n
\n
\n\n',h=a("../../../../../client/scripts/components/variables/variable-inspect-dialog"),i=a("../../../../../client/scripts/components/variables/variable-upload-dialog");b.exports=function(a){a.controller("VariableInstancesController",["$scope","$sce","$http","search","Uri","LocalExecutionVariableResource","Notifications","$modal","$q","camAPI","fixDate","unfixDate","$translate","localConf",function(a,b,c,g,j,k,l,m,n,o,p,q,r,s){function t(a){return"engine://engine/:engine/execution/"+a.executionId+"/localVariables/"+a.name}function u(b,c,e,f){a.pagesObj=e||a.pagesObj,f=f||a.sortObj;var g=a.pagesObj.current,h=a.pagesObj.size,i=(g-1)*h,j={processInstanceIdIn:[A.id]};f&&(j.sorting=[f],v(f));var k={firstResult:i,maxResults:h,deserializeValues:!1},l=d.extend({},j,c),m=d.extend({},k,j,c);return a.variables=null,a.loadingState="LOADING",x={},y={},m=d.extend({},m,k),D.count(l).then(function(c){return a.total=c.count,D.instances(m).then(function(c){var e=c;return a.variables=e.map(function(c){var e=b[c.activityInstanceId];c.instance=e,y[c.id]=d.copy(c),"Date"===c.type&&(c.value=q(c.value));var f="";return e&&(f=''+e.name+""),{variable:{id:c.id,name:c.name,type:c.type,value:c.value,valueInfo:c.valueInfo,executionId:c.executionId},original:c,additions:{scope:{html:f,scopeVariables:{processData:a.processData}}}}}),a.loadingState=e.length?"LOADED":"EMPTY",a.total})})}function v(a){s.set("sortHistVarInstTab",a)}function w(a){return s.get("sortHistVarInstTab",a)}var x,y,z=a.processData.newChild(a),A=a.processInstance,B=o.resource("execution"),C=o.resource("task"),D=o.resource("variable");a.headColumns=[{"class":"name",request:"variableName",sortable:!0,content:r.instant("PLUGIN_VARIABLE_NAME")},{"class":"type",request:"variableType",sortable:!0,content:r.instant("PLUGIN_VARIABLE_TYPE")},{"class":"value",request:"",sortable:!1,content:r.instant("PLUGIN_VARIABLE_VALUE")},{"class":"scope",request:"",sortable:!1,content:r.instant("PLUGIN_VARIABLE_SCOPE")}];var E={sortBy:"variableName",sortOrder:"asc"};a.sortObj=w(E),a.searchConfig=d.copy(f),d.forEach(f.tooltips,function(b,c){a.searchConfig.tooltips[c]=r.instant(b)}),a.searchConfig.types.map(function(a){return a.id.value=r.instant(a.id.value),a.operators&&(a.operators=a.operators.map(function(a){return a.value=r.instant(a.value),a})),a}),z.observe("instanceIdToInstanceMap",function(b){a.instanceIdToInstanceMap=b}),a.onSearchChange=function(b,c,d){return a.query=b||a.query,a.pages=c||a.pages,a.instanceIdToInstanceMap?u(a.instanceIdToInstanceMap,a.query,a.pages,d):n.when(a.total)},a.onSortChange=a.onSearchChange,a.getSearchQueryForSearchType=e.getSearchQueryForSearchType.bind(null,"activityInstanceIdIn"),a.uploadVariable=function(b){var c=n.defer();return m.open({resolve:{basePath:function(){return t(b.variable)},variable:function(){return b.variable}},controller:i.controller,template:i.template}).result.then(function(){c.reject(),z.set("filter",d.copy(a.filter))},function(){c.reject()}),c.promise},a.downloadVariable=function(a){return j.appUri("engine://engine/:engine/variable-instance/"+a.variable.id+"/data")},a.deleteVariable=function(a){var b=n.defer(),c=function(c){if(c){var d={text:"",payload:{}};c.response.body&&"AuthorizationException"===c.response.body.type?(d.text="PLUGIN_VARIABLE_INSTANCES_MESSAGES_ERROR_3",d.payload={message:c.message}):(d.text="PLUGIN_VARIABLE_INSTANCES_MESSAGES_ERROR_0",d.payload={name:a.variable.name}),l.addError({status:r.instant("PLUGIN_VARIABLE_INSTANCES_STATUS_VARIABLE"),message:r.instant(d.text,d.payload),exclusive:!0,duration:5e3}),b.reject()}else l.addMessage({status:r.instant("PLUGIN_VARIABLE_INSTANCES_STATUS_VARIABLE"),message:r.instant("PLUGIN_VARIABLE_INSTANCES_MESSAGES_ADD_0",{name:a.variable.name}),duration:5e3}),b.resolve(a.variable)};return a.original.taskId?C.deleteVariable({id:a.original.taskId,varId:a.variable.name},c):B.deleteVariable({id:a.variable.executionId,varId:a.variable.name},c),b.promise},a.editVariable=function(b){var c=n.defer();return m.open({template:h.template,controller:h.controller,windowClass:"cam-widget-variable-dialog",resolve:{basePath:function(){return t(b.variable)},history:function(){return!1},readonly:function(){return!1},variable:function(){return b.variable}}}).result.then(function(){c.reject(),z.set("filter",d.copy(a.filter))},function(){c.reject()}),c.promise},a.saveVariable=function(a){var b=n.defer(),c=a.variable,e={},f=c.value,g=c.type;"Date"===g&&(f=p(f));var h={value:f,type:g};e[c.name]=h;var i=function(e){if(e){var f={text:"",payload:{}};e.response.body&&"AuthorizationException"===e.response.body.type?(f.text="PLUGIN_VARIABLE_INSTANCES_MESSAGES_ERROR_2",f.payload={message:e.message}):(f.text="PLUGIN_VARIABLE_INSTANCES_MESSAGES_ERROR_1",f.payload={name:c.name}),l.addError({status:r.instant("PLUGIN_VARIABLE_INSTANCES_STATUS_VARIABLE"),message:r.instant(f.text,f.payload),exclusive:!0,duration:5e3}),x[c.id]=e.data,b.reject()}else l.addMessage({status:r.instant("PLUGIN_VARIABLE_INSTANCES_STATUS_VARIABLE"),message:r.instant("PLUGIN_VARIABLE_INSTANCES_MESSAGES_ADD_1",{name:c.name}),duration:5e3}),"Date"===h.type&&(h.value=q(h.value)),d.extend(c,h),b.resolve(a.variable)};return a.original.taskId?C.modifyVariables({id:a.original.taskId,modifications:e},i):B.modifyVariables({id:c.executionId,modifications:e},i),b.promise}}]);var b=function(a){a.registerDefaultView("cockpit.processInstance.runtime.tab",{id:"variables-tab",label:"PLUGIN_VARIABLE_INSTANCES_LABEL",template:g,controller:"VariableInstancesController",priority:20})};b.$inject=["ViewsProvider"],a.config(b)}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../../../../../common/scripts/util/search-widget-utils":86,"../../../../../client/scripts/components/variables/variable-inspect-dialog":7,"../../../../../client/scripts/components/variables/variable-upload-dialog":8}],49:[function(a,b,c){"use strict";var d='\n
\n
\n \n
\n
\n

{{ processDefinitionsCount }} {{ (processDefinitionsCount > 1 ? \'PLUGIN_PROCESS_DEF_PROCESS_DEFINITIONS_DEPLOYED\' : \'PLUGIN_PROCESS_DEF_PROCESS_DEFINITION_DEPLOYED\' | translate) }}

\n\n \n
\n
\n\n
\n

{{\'PLUGIN_PROCESS_DEF_NO_PROCESS_DEF\' | translate}}

\n
\n\n\n\n \n\n\n
\n
\n\n\n';b.exports=["ViewsProvider",function(a){a.registerDefaultView("cockpit.processes.dashboard",{id:"process-definition",label:"Deployed Process Definitions",template:d,controller:["$scope","Views","camAPI","localConf","$translate",function(a,b,c,d,e){function f(a){d.set("sortProcessDefTab",a)}function g(a){return d.get("sortProcessDefTab",a)}var h=c.resource("process-definition");a.processesActions=b.getProviders({component:"cockpit.processes.action"}),a.hasActionPlugin=a.processesActions.length>0;var i=b.getProviders({component:"cockpit.processInstance.view"});a.hasHistoryPlugin=i.filter(function(a){return"history"===a.id}).length>0,a.hasReportPlugin=b.getProviders({component:"cockpit.report"}).length>0,a.hasSearchPlugin=b.getProviders({component:"cockpit.processes.dashboard",id:"search-process-instances"}).length>0,a.headColumns=[{"class":"state",request:"",sortable:!1,content:e.instant("PLUGIN_PROCESS_DEF_STATE")},{"class":"incidents",request:"incidentCount",sortable:!0,content:e.instant("PLUGIN_PROCESS_DEF_INCIDENTS")},{"class":"instances",request:"instances",sortable:!0,content:e.instant("PLUGIN_PROCESS_DEF_RUNNING_INSTANCES")},{"class":"name",request:"label",sortable:!0,content:e.instant("PLUGIN_PROCESS_DEF_NAME")},{"class":"tenantID",request:"tenantId",sortable:!0,content:e.instant("PLUGIN_PROCESS_DEF_TENANT_ID")},{"class":"history",request:"",sortable:!1,content:e.instant("PLUGIN_PROCESS_DEF_HISTORY_VIEW"),condition:a.hasReportPlugin},{"class":"report",request:"",sortable:!1,content:e.instant("PLUGIN_PROCESS_DEF_REPORT"),condition:a.hasReportPlugin},{"class":"action",request:"",sortable:!1,content:e.instant("PLUGIN_PROCESS_DEF_ACTION"),condition:a.hasActionPlugin}];var j={sortBy:"label",sortOrder:"asc",sortReverse:!1};a.sortObj=g(j),a.onSortChange=function(b){b=b||a.sortObj,b.sortReverse="asc"!==b.sortOrder,f(b),a.sortObj=b};var k=a.processData.newChild(a),l=function(a){return a?a.reduce(function(a,b){return a+b.incidentCount},0):0};a.loadingState="LOADING";var m=function(){h.count({latest:!0},function(b,c){b&&(a.loadingState="ERROR"),a.processDefinitionsCount=c})},n=function(){h.list({latest:!0},function(b,c){c.items.forEach(function(a){a.label=a.name||a.key}),a.processDefinitionData=c.items,a.processDefinitionsCount=c.count,a.loadingState=b?"ERROR":"LOADED",k.observe("processDefinitionStatistics",function(b){a.statistics=b,a.statistics.forEach(function(b){var c=b.definition.id,d=a.processDefinitionData.filter(function(a){return a.id===c}),e=d[0];e&&(e.incidents=b.incidents,e.incidentCount=l(e.incidents),e.instances=b.instances)})})})};a.definitionVars={read:["pd"]};var o=a.$on("processes.action.delete",function(b,c){for(var d=a.processDefinitionData,e=0;e\n \n\n
\n

{{ \'PLUGIN_DECISION_TABLE_NO_DECISION_TABLES_DEPLOYED\' | translate }}

\n
\n\n \n\n \n \n\n \n \n \n \n \n \n \n
\n \n {{ decision.name || decision.key }}\n \n \n {{ decision.tenantId }}\n \n \n {{ decision.drd.name || decision.drd.key }}\n \n
\n\n \n\n';b.exports=function(){return{restrict:"A",template:d,scope:{decisionCount:"=",decisions:"=",isDrdAvailable:"="},controller:["$scope","localConf","$translate",function(a,b,c){function d(a){b.set("sortDecDefTab",a)}function e(a){return b.get("sortDecDefTab",a)}a.headColumns=[{"class":"name",request:"name",sortable:!0,content:c.instant("PLUGIN_DECISION_TABLE_NAME")},{"class":"tenant-id",request:"tenantId",sortable:!0,content:c.instant("PLUGIN_DECISION_TABLE_TENANT_ID")},{"class":"drd",request:"drd.name",sortable:!0,content:c.instant("PLUGIN_DECISION_TABLE_DECISION_REQUIREMENTS"),condition:a.isDrdAvailable}];var f={sortBy:"name",sortOrder:"asc",sortReverse:!1};a.sortObj=e(f),a.onSortChange=function(b){b=b||a.sortObj,b.sortReverse="asc"!==b.sortOrder,d(b),a.sortObj=b}}]}}},{}],53:[function(a,b,c){"use strict";b.exports=["$scope","decisionList","Views",function(a,b,c){a.loadingState="LOADING",a.drdDashboard=c.getProvider({component:"cockpit.plugin.drd.dashboard"}),a.isDrdDashboardAvailable=!!a.drdDashboard,b.getDecisionsLists().then(function(b){a.loadingState="LOADED",a.decisionCount=b.decisions.length,a.decisions=b.decisions,a.drdsCount=b.drds.length,a.drds=b.drds})["catch"](function(b){throw a.loadingError=b.message,a.loadingState="ERROR",b}),a.drdDashboardVars={read:["drdsCount","drds"]}}]},{}],54:[function(a,b,c){(function(c){"use strict";var d="undefined"!=typeof window?window.angular:"undefined"!=typeof c?c.angular:null,e="undefined"!=typeof window?window["cam-common"]:"undefined"!=typeof c?c["cam-common"]:null,f=a("./views/decision-list"),g=a("./controllers/decision-list"),h=a("./services/decision-list"),i=a("./components/decisions-table"),j=d.module("cockpit.plugin.decisionList.views.dashboard",[e.name]);j.config(f),j.factory("decisionList",h),j.controller("DecisionListController",g),j.directive("decisionsTable",i),b.exports=j}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./components/decisions-table":52,"./controllers/decision-list":53,"./services/decision-list":55,"./views/decision-list":56}],55:[function(a,b,c){"use strict";b.exports=["$q","camAPI",function(a,b){function c(){var b=f.list({latestVersion:!0,sortBy:"name",sortOrder:"asc"}),c=g.list({latestVersion:!0,sortBy:"name",sortOrder:"asc"});return a.all({decisions:b,drds:c}).then(function(a){return a.decisions=d(a.drds,a.decisions),a})}function d(a,b){return b.map(function(b){return b.decisionRequirementsDefinitionId&&(b.drd=e(a,b.decisionRequirementsDefinitionId)),b})}function e(a,b){return a.filter(function(a){return a.id===b})[0]}var f=b.resource("decision-definition"),g=b.resource("drd");return{getDecisionsLists:c}}]},{}],56:[function(a,b,c){"use strict";var d='\n
\n\n
\n
\n\n \n
\n\n'; b.exports=["ViewsProvider",function(a){a.registerDefaultView("cockpit.decisions.dashboard",{id:"decision-list",label:"Deployed Decision Tables",template:d,controller:"DecisionListController",priority:-5})}]},{}],57:[function(a,b,c){(function(a){"use strict";var c="undefined"!=typeof window?window.angular:"undefined"!=typeof a?a.angular:null,d='\n
\n\n \n\n \n \n\n \n \n \n\n \n\n \n \n \n\n \n \n \n\n \n \n\n \n \n
\n \n {{ decisionInstance.id }}\n \n \n {{ decisionInstance.evaluationTime | camDate }}\n \n \n {{ decisionInstance.processDefinitionKey }}\n \n \n \n {{ decisionInstance.caseDefinitionKey }}\n \n \n {{ decisionInstance.caseDefinitionKey }}\n \n \n \n \n {{ decisionInstance.processInstanceId }}\n \n \n \n {{ decisionInstance.caseInstanceId }}\n \n \n {{ decisionInstance.caseInstanceId }}\n \n \n \n {{ decisionInstance.activityId }}\n \n
\n
\n\n',e=JSON.parse('{\n "types": [\n {\n "id": {\n "key": "decisionInstanceId",\n "value": "PLUGIN_DECISION_DEFINITION_VALUE_TYPE_ID"\n },\n "operators": [\n {\n "key": "eq",\n "value": "="\n }\n ],\n "default": true\n },\n {\n "id": {\n "key": "processDefinitionId",\n "value": "PLUGIN_DECISION_DEFINITION_VALUE_PROCESS_DEFINITION_ID"\n },\n "operators": [\n {\n "key": "eq",\n "value": "="\n }\n ]\n },\n {\n "id": {\n "key": "processDefinitionKey",\n "value": "PLUGIN_DECISION_DEFINITION_VALUE_PROCESS_DEFINITION_KEY"\n },\n "operators": [\n {\n "key": "eq",\n "value": "="\n }\n ]\n },\n {\n "id": {\n "key": "processInstanceId",\n "value": "PLUGIN_DECISION_DEFINITION_VALUE_PROCESS_INSTANCE_ID"\n },\n "operators": [\n {\n "key": "eq",\n "value": "="\n }\n ]\n },\n {\n "id": {\n "key": "caseDefinitionId",\n "value": "PLUGIN_DECISION_DEFINITION_VALUE_CASE_DEFINITION_ID"\n },\n "operators": [\n {\n "key": "eq",\n "value": "="\n }\n ]\n },\n {\n "id": {\n "key": "caseDefinitionKey",\n "value": "PLUGIN_DECISION_DEFINITION_VALUE_CASE_DEFINITION_KEY"\n },\n "operators": [\n {\n "key": "eq",\n "value": "="\n }\n ]\n },\n {\n "id": {\n "key": "caseInstanceId",\n "value": "PLUGIN_DECISION_DEFINITION_VALUE_CASE_INSTANCE_ID"\n },\n "operators": [\n {\n "key": "eq",\n "value": "="\n }\n ]\n },\n {\n "id": {\n "key": "activityIdIn",\n "value": "PLUGIN_DECISION_DEFINITION_VALUE_ACTIVITY_ID"\n },\n "operators": [\n {\n "key": "eq",\n "value": "="\n }\n ]\n },\n {\n "id": {\n "key": "activityInstanceIdIn",\n "value": "PLUGIN_DECISION_DEFINITION_VALUE_ACTIVITY_INSTANCE_ID"\n },\n "operators": [\n {\n "key": "eq",\n "value": "="\n }\n ]\n },\n {\n "id": {\n "key": "evaluatedDate",\n "value": "PLUGIN_DECISION_DEFINITION_VALUE_EVALUATED_DATE"\n },\n "operators": [\n {\n "key": "Before",\n "value": "PLUGIN_DECISION_DEFINITION_VALUE_OPERATOR_BEFORE"\n },\n {\n "key": "After",\n "value": "PLUGIN_DECISION_DEFINITION_VALUE_OPERATOR_AFTER"\n }\n ],\n "allowDates": true,\n "enforceDates": true\n },\n {\n "id": {\n "key": "userId",\n "value": "PLUGIN_DECISION_DEFINITION_VALUE_USER_ID"\n },\n "operators": [\n {\n "key": "eq",\n "value": "="\n }\n ]\n }\n ],\n "operators": {\n "undefined": [\n {\n "key": "eq",\n "value": "="\n },\n {\n "key": "neq",\n "value": "!="\n },\n {\n "key": "gt",\n "value": ">"\n },\n {\n "key": "gteq",\n "value": ">="\n },\n {\n "key": "lt",\n "value": "<"\n },\n {\n "key": "lteq",\n "value": "<="\n },\n {\n "key": "like",\n "value": "PLUGIN_DECISION_DEFINITION_OPERATOR_LIKE"\n }\n ],\n "string": [\n {\n "key": "eq",\n "value": "="\n },\n {\n "key": "neq",\n "value": "!="\n },\n {\n "key": "gt",\n "value": ">"\n },\n {\n "key": "gteq",\n "value": ">="\n },\n {\n "key": "lt",\n "value": "<"\n },\n {\n "key": "lteq",\n "value": "<="\n },\n {\n "key": "like",\n "value": "PLUGIN_DECISION_DEFINITION_OPERATOR_LIKE"\n }\n ],\n "number": [\n {\n "key": "eq",\n "value": "="\n },\n {\n "key": "neq",\n "value": "!="\n },\n {\n "key": "gt",\n "value": ">"\n },\n {\n "key": "gteq",\n "value": ">="\n },\n {\n "key": "lt",\n "value": "<"\n },\n {\n "key": "lteq",\n "value": "<="\n }\n ],\n "boolean": [\n {\n "key": "eq",\n "value": "="\n },\n {\n "key": "neq",\n "value": "!="\n }\n ],\n "object": [{\n "key": "eq",\n "value": "="\n },\n {\n "key": "neq",\n "value": "!="\n }],\n "date": [{\n "key": "lteq",\n "value": "PLUGIN_DECISION_DEFINITION_VALUE_OPERATOR_BEFORE"\n },\n {\n "key": "gteq",\n "value": "PLUGIN_DECISION_DEFINITION_VALUE_OPERATOR_AFTER"\n }]\n },\n "tooltips": {\n "inputPlaceholder": "PLUGIN_DECISION_DEFINITION_ADD_CRITERIA",\n "invalid": "PLUGIN_DECISION_DEFINITION_INVALID",\n "deleteSearch": "PLUGIN_DECISION_DEFINITION_DELETE_SEARCH",\n "type": "PLUGIN_DECISION_DEFINITION_TYPE",\n "name": "PLUGIN_DECISION_DEFINITION_NAME",\n "operator": "PLUGIN_DECISION_DEFINITION_OPERATOR",\n "value": "PLUGIN_DECISION_DEFINITION_VALUE"\n }\n}\n');b.exports=["ViewsProvider",function(a){a.registerDefaultView("cockpit.decisionDefinition.tab",{id:"decision-instances-table",label:"DECISION_DEFINITION_LABEL",template:d,controller:["$scope","$location","search","routeUtil","camAPI","Views","$translate","localConf",function(a,b,d,f,g,h,i,j){function k(b,d,e){a.pagesObj=d||a.pagesObj,a.sortObj=e||a.sortObj,e&&l(e);var f=a.pagesObj.current,g=a.pagesObj.size,h=(f-1)*g;a.decisionInstances=null,a.loadingState="LOADING";var i=c.extend({decisionDefinitionId:a.decisionDefinition.id,firstResult:h,maxResults:g,sortBy:a.sortObj.sortBy,sortOrder:a.sortObj.sortOrder},b),j=c.extend({decisionDefinitionId:a.decisionDefinition.id},b);return r.decisionInstanceCount(j).then(function(b){var c=b.count;return r.decisionInstance(i).then(function(b){return a.decisionInstances=b,a.loadingState=b.length?"LOADED":"EMPTY",c})})}function l(a){j.set("sortDecInstTab",a)}function m(a){return j.get("sortDecInstTab",a)}a.headColumns=[{"class":"instance-id",request:"",sortable:!1,content:i.instant("PLUGIN_DECISION_ID")},{"class":"start-time",request:"evaluationTime",sortable:!0,content:i.instant("PLUGIN_DECISION_EVALUATION_TIME")},{"class":"definition-key",request:"",sortable:!1,content:i.instant("PLUGIN_DECISION_CALLING_PROCESS_CASE")},{"class":"instance-id",request:"",sortable:!1,content:i.instant("PLUGIN_DECISION_CALLING_INSTANCE_ID")},{"class":"activity-id",request:"",sortable:!1,content:i.instant("PLUGIN_DECISION_ACTIVITY_ID")}];var n={sortBy:"evaluationTime",sortOrder:"desc"};a.sortObj=m(n);var o=h.getProviders({component:"cockpit.processInstance.view"}),p=o.filter(function(a){return"history"===a.id}).length>0;a.hasCasePlugin=!1;try{a.hasCasePlugin=!!c.module("cockpit.plugin.case")}catch(q){}a.getProcessDefinitionLink=function(a){return p?"#/process-definition/"+a.processDefinitionId+"/history":"#/process-definition/"+a.processDefinitionId},a.getProcessInstanceLink=function(a){return p?"#/process-instance/"+a.processInstanceId+"/history?activityInstanceIds="+a.activityInstanceId+"&activityIds="+a.activityId:"#/process-instance/"+a.processInstanceId},a.getActivitySearch=function(a){return JSON.stringify([{type:"caseActivityIdIn",operator:"eq",value:a.activityId}])},a.searchConfig=c.copy(e),c.forEach(e.tooltips,function(b,c){a.searchConfig.tooltips[c]=i.instant(b)}),a.searchConfig.types.map(function(a){return a.id.value=i.instant(a.id.value),a.operators&&(a.operators=a.operators.map(function(a){return a.value=i.instant(a.value),a})),a});var r=g.resource("history");a.onSearchChange=k,a.onSortChange=k}],priority:10})}]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],58:[function(a,b,c){"use strict";b.exports=["ViewsProvider",function(a){a.registerDefaultView("cockpit.decisionInstance.table",{id:"highlightRules",initialize:function(a){a.decisionInstance.outputs.forEach(function(b){b.ruleId&&a.tableControl.highlightRow(b.ruleId,"highlight")})}})}]},{}],59:[function(a,b,c){"use strict";var d='\n\n\n
\n
\n
\n\n\n';b.exports=["ViewsProvider",function(a){a.registerDefaultView("cockpit.decisionInstance.tab",{id:"decision-input-table",label:"PLUGIN_INPUT_TABLE_LABEL",template:d,controller:["$scope","$translate","localConf","orderByFilter",function(a,b,c,d){function e(a){c.set("sortDecisionInputTab",a)}function f(a){return c.get("sortDecisionInputTab",a)}a.loadingState=a.decisionInstance.inputs.length>0?"LOADED":"EMPTY",a.variables=a.decisionInstance.inputs.map(function(a){return{variable:{type:a.type,value:a.value,name:a.clauseName||a.clauseId,valueInfo:a.valueInfo}}}),a.headColumns=[{"class":"name",request:"variable.name",sortable:!0,content:b.instant("PLUGIN_VARIABLE_NAME")},{"class":"type",request:"variable.type",sortable:!0,content:b.instant("PLUGIN_VARIABLE_TYPE")},{"class":"value",request:"",sortable:!1,content:b.instant("PLUGIN_VARIABLE_VALUE")}],a.sortObj=f({sortBy:"variable.name",sortOrder:"asc",sortReverse:!1}),a.onSortChange=function(b){b=b||a.sortObj,b.sortReverse="asc"!==b.sortOrder,e(b),a.variables=d(a.variables,b.sortBy,b.sortReverse)}}],priority:20})}]},{}],60:[function(a,b,c){"use strict";var d='\n\n\n
\n\n\n\n';b.exports=["ViewsProvider",function(a){a.registerDefaultView("cockpit.decisionInstance.tab",{id:"decision-input-table",label:"PLUGIN_OUTPUT_TABLE_LABEL",template:d,controller:["$scope","$translate","localConf","orderByFilter",function(a,b,c,d){function e(a){c.set("sortDecisionInputTab",a)}function f(a){return c.get("sortDecisionInputTab",a)}a.variables=a.decisionInstance.outputs.map(function(a){return{variable:{type:a.type,value:a.value,name:a.clauseName||a.clauseId||a.variableName,valueInfo:a.valueInfo}}}),a.headColumns=[{"class":"name",request:"variable.name",sortable:!0,content:b.instant("PLUGIN_VARIABLE_NAME")},{"class":"type",request:"variable.type",sortable:!0,content:b.instant("PLUGIN_VARIABLE_TYPE")},{"class":"value",request:"",sortable:!1,content:b.instant("PLUGIN_VARIABLE_VALUE")}],a.sortObj=f({sortBy:"variable.name",sortOrder:"asc",sortReverse:!1}),a.onSortChange=function(b){b=b||a.sortObj,b.sortReverse="asc"!==b.sortOrder,e(b),a.variables=d(a.variables,b.sortBy,b.sortReverse)}}],priority:10})}]},{}],61:[function(a,b,c){"use strict";var d=a("camunda-commons-ui/vendor/angular");b.exports=["ViewsProvider",function(a){a.registerDefaultView("cockpit.decisionInstance.table",{id:"realInput",initialize:function(a){var b,c,e=d.element("th[data-col-id]");e&&e.each(function(d,e){c=a.decisionInstance.inputs.filter(function(a){return a.clauseId===e.getAttribute("data-col-id")})[0],c&&(b=document.createElement("span"),"Object"!==c.type&&"Bytes"!==c.type&&"File"!==c.type?(b.className="dmn-input",b.textContent=" = "+c.value):(b.className="dmn-input-object",b.setAttribute("title","Variable value of type "+c.type+" is not shown"),b.textContent=" = ["+c.type+"]"),e.firstChild.appendChild(b))})}})}]},{"camunda-commons-ui/vendor/angular":3}],62:[function(a,b,c){"use strict";var d=a("camunda-commons-ui/vendor/angular");b.exports=["ViewsProvider",function(a){a.registerDefaultView("cockpit.decisionInstance.table",{id:"realOutput",initialize:function(a){var b,c,e;a.decisionInstance.outputs.map(function(a){c=".output-cell[data-col-id="+a.clauseId+"][data-row-id="+a.ruleId+"]",b=d.element(c)[0],e=document.createElement("span"),"Object"!==a.type&&"Bytes"!==a.type&&"File"!==a.type?(e.className="dmn-output",e.textContent=" = "+a.value):(e.className="dmn-output-object",e.setAttribute("title","Variable value of type "+a.type+" is not shown"),e.textContent=" = ["+a.type+"]"),b.appendChild(e)})}})}]},{"camunda-commons-ui/vendor/angular":3}],63:[function(a,b,c){(function(c){"use strict";var d="undefined"!=typeof window?window.angular:"undefined"!=typeof c?c.angular:null,e=a("./dashboard"),f=a("./decisionDefinition/decisionInstanceTable"),g=a("./decisionInstance/inputTable"),h=a("./decisionInstance/outputTable"),i=a("./decisionInstance/highlightRules"),j=a("./decisionInstance/realInput"),k=a("./decisionInstance/realOutput"),l=d.module("cockpit.plugin.decisionList.views",[e.name]);l.config(f),l.config(g),l.config(h),l.config(i),l.config(j),l.config(k),b.exports=l}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./dashboard":54,"./decisionDefinition/decisionInstanceTable":57,"./decisionInstance/highlightRules":58,"./decisionInstance/inputTable":59,"./decisionInstance/outputTable":60,"./decisionInstance/realInput":61,"./decisionInstance/realOutput":62}],64:[function(a,b,c){"use strict";function d(a,b,c,d,e,f){b(a,this,["processInstance","processData"]),d(a,this),this.translate=e,this.localConf=f,this.externalTasks=c,this.query=null,this.pages=null,this.activityIds=null,this.sorting=this._loadLocal({sortBy:"taskPriority",sortOrder:"asc"}),this.headColumns=[{"class":"state",request:"",sortable:!1,content:this.translate.instant("PLUGIN_EXT_EXTERNAL_TASK_ID")},{"class":"activity",request:"",sortable:!1,content:this.translate.instant("PLUGIN_EXT_ACTIVITY")},{"class":"retries",request:"",sortable:!1,content:this.translate.instant("PLUGIN_EXT_RETRIES")},{"class":"worker-id",request:"",sortable:!1,content:this.translate.instant("PLUGIN_EXT_WORKER_ID")},{"class":"expiration",request:"",sortable:!1,content:this.translate.instant("PLUGIN_EXT_LOCK_EXPIRATION_TIME")},{"class":"topic",request:"",sortable:!1,content:this.translate.instant("PLUGIN_EXT_TOPIC")},{"class":"priority",request:"taskPriority",sortable:!0,content:this.translate.instant("PLUGIN_EXT_PRIORITY")}]}b.exports=["$scope","exposeScopeProperties","externalTasks","observeBpmnElements","$translate","localConf",d],d.prototype._loadLocal=function(a){return this.localConf.get("sortExternalTaskRuntimeTab",a)},d.prototype._saveLocal=function(a){return this.localConf.set("sortExternalTaskRuntimeTab",a)},d.prototype.onSortChange=function(a){this.sorting=a,this._saveLocal(this.sorting),this.onLoad()},d.prototype.onLoad=function(a,b){return this.pages=a||this.pages,this.activityIds=b||this.activityIds,this.externalTasks.getActiveExternalTasksForProcess(this.processInstance.id,this.pages,this.sorting,this.getActivityParams(this.activityIds)).then(function(a){return this.tasks=a.list,a}.bind(this))},d.prototype.getActivityParams=function(a){return a&&a.length?{activityIdIn:a}:{}}},{}],65:[function(a,b,c){(function(c){"use strict";var d=a("camunda-commons-ui/vendor/angular"),e="undefined"!=typeof window?window["cam-common"]:"undefined"!=typeof c?c["cam-common"]:null,f=a("./services/external-tasks"),g=a("./controllers/process-instance-runtime-external-tasks-controller"),h=a("./view-provider.config"),i=d.module("cockpit.plugin.process-instance-runtime-tab",[e.name]);i.factory("externalTasks",f),i.controller("ProcessInstanceRuntimeTabController",g),i.config(h),b.exports=i}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./controllers/process-instance-runtime-external-tasks-controller":64,"./services/external-tasks":66,"./view-provider.config":67,"camunda-commons-ui/vendor/angular":3}],66:[function(a,b,c){"use strict";var d=a("camunda-commons-ui/vendor/angular");b.exports=["camAPI","createListQueryFunction",function(a,b){function c(a,b,c,e){var g={processInstanceId:a},h={sorting:[c]};return f(d.extend(g,e),b,h)}var e=a.resource("external-task"),f=b(e.count.bind(e),e.list.bind(e));return{getActiveExternalTasksForProcess:c}}]},{"camunda-commons-ui/vendor/angular":3}],67:[function(a,b,c){"use strict";var d='\n
\n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n
{{task.id}}\n \n \n {{task.retries}}{{task.workerId}}{{task.lockExpirationTime}}{{task.topicName}}{{task.priority}}
\n
\n\n';b.exports=["ViewsProvider",function(a){a.registerDefaultView("cockpit.processInstance.runtime.tab",{id:"external-tasks-process-instance-runtime",label:"PLUGIN_EXTERNAL_TASKS_LABEL",template:d,controller:"ProcessInstanceRuntimeTabController as RuntimeTab"})}]},{}],68:[function(a,b,c){(function(a){"use strict";var c="undefined"!=typeof window?window.angular:"undefined"!=typeof a?a.angular:null,d='\n\n \n\n\n',e='\n\n\n\n\n\n\n',f=function(a){a.registerDefaultView("cockpit.processDefinition.runtime.action",{id:"bulk-job-definition-override-job-priority-action",template:d,controller:["$scope","$rootScope","$modal",function(a,b,d){var f,g=a.processData.newChild(a);g.observe("jobDefinitions",function(a){f=a}),a.openDialog=function(){var b=d.open({resolve:{jobDefinitions:function(){return f}},controller:"BulkJobDefinitionOverrideJobPriorityController",template:e});b.result.then(function(b){"FINISHED"===b.status&&(g.changed("jobDefinitions"),g.set("filter",c.extend({},a.filter)))})}}],priority:10})};f.$inject=["ViewsProvider"],b.exports=f}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],69:[function(a,b,c){(function(a){"use strict";var c="undefined"!=typeof window?window.angular:"undefined"!=typeof a?a.angular:null;b.exports=["$scope","$q","Notifications","JobDefinitionResource","$modalInstance","jobDefinitions","$timeout","$translate",function(a,b,d,e,f,g,h,i){function j(b){for(var c=r.size,d=(b-1)*c,e=a.showJobDefinitions=[],f=0;f\n \n\n\n',e='\n\n\n\n\n\n\n',f=function(a){a.registerDefaultView("cockpit.jobDefinition.action",{id:"job-definition-override-job-priority-action",template:d,controller:["$scope","$rootScope","$modal",function(a,b,d){a.openDialog=function(b){var f=d.open({resolve:{jobDefinition:function(){return b}},controller:"JobDefinitionOverrideJobPriorityController",template:e});f.result.then(function(b){"SUCCESS"===b.status&&(a.processData.changed("jobDefinitions"),a.processData.set("filter",c.extend({},a.filter)))})}}],priority:10})};f.$inject=["ViewsProvider"],b.exports=f}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],72:[function(a,b,c){(function(a){"use strict";var c="undefined"!=typeof window?window.angular:"undefined"!=typeof a?a.angular:null;b.exports=["$scope","$q","Notifications","JobDefinitionResource","$modalInstance","jobDefinition","$translate",function(a,b,d,e,f,g,h){var i="SUCCESS",j="FAIL";a.status,a.setJobPriority=!0;var k=a.data={priority:g.overridingJobPriority,includeJobs:!1};a.$on("$routeChangeStart",function(){var b={};b.status=a.status,f.close(b)}),a.hasOverridingJobPriority=function(){return null!==g.overridingJobPriority&&void 0!==g.overridingJobPriority},a.submit=function(){var b=a.setJobPriority;b||(k={}),e.setJobPriority({id:g.id},k,function(){a.status=i,b?d.addMessage({status:h.instant("PLUGIN_JOBDEFINITION_ACTION_STATUS_FINISHED"),message:h.instant("PLUGIN_JOBDEFINITION_ACTION_DIALOG_MSN_1"),exclusive:!0}):d.addMessage({status:h.instant("PLUGIN_JOBDEFINITION_ACTION_STATUS_FINISHED"),message:h.instant("PLUGIN_JOBDEFINITION_ACTION_DIALOG_MSN_2"),exclusive:!0})},function(c){a.status=j,b?d.addError({status:h.instant("PLUGIN_JOBDEFINITION_ACTION_STATUS_FINISHED"),message:h.instant("PLUGIN_JOBDEFINITION_ACTION_DIALOG_ERR_1",{message:c.data.message}),exclusive:!0}):d.addError({status:h.instant("PLUGIN_JOBDEFINITION_ACTION_STATUS_FINISHED"),message:h.instant("PLUGIN_JOBDEFINITION_ACTION_DIALOG_ERR_2",{message:c.data.message}),exclusive:!0})})},a.isValid=function(){var b=c.element('[name="overrideJobPriorityForm"]').scope();return!a.setJobPriority||!(!b||!b.overrideJobPriorityForm)&&b.overrideJobPriorityForm.$valid},a.close=function(a){var b={};b.status=a,f.close(b)}}]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],73:[function(a,b,c){(function(c){"use strict";var d="undefined"!=typeof window?window.angular:"undefined"!=typeof c?c.angular:null,e=a("./processDefinition/jobDefinitionData"),f=d.module("cockpit.plugin.jobDefinition.data",[]);f.config(e),b.exports=f}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./processDefinition/jobDefinitionData":74}],74:[function(a,b,c){(function(a){"use strict";var c="undefined"!=typeof window?window.angular:"undefined"!=typeof a?a.angular:null,d=["$scope","processData","JobDefinitionResource",function(a,b,d){a.$on("$processDefinition.suspensionState.changed",function(){b.changed("jobDefinitions")}),b.provide("jobDefinitions",["processDefinition",function(a){return d.query({processDefinitionId:a.id}).$promise}]),b.observe(["jobDefinitions","bpmnElements"],function(a,b){c.forEach(a,function(a){var c=a.activityId,d=b[c];a.activityName=d&&(d.name||d.id)||c})})}],e=function(a){a.registerData("cockpit.processDefinition.data",{id:"job-definitions-data",controller:d})};e.$inject=["DataProvider"],b.exports=e}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],75:[function(a,b,c){(function(c){"use strict";var d="undefined"!=typeof window?window.angular:"undefined"!=typeof c?c.angular:null,e=a("./views/main"),f=a("./data/main"),g=a("./actions/main");b.exports=d.module("cockpit.plugin.jobDefinition",[e.name,f.name,g.name])}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./actions/main":70,"./data/main":73,"./views/main":76}],76:[function(a,b,c){(function(c){"use strict";var d="undefined"!=typeof window?window.angular:"undefined"!=typeof c?c.angular:null,e=a("./processDefinition/jobDefinitionTable"),f=a("./processDefinition/jobDefinitionSuspensionState"),g=a("./processDefinition/suspensionStateAction"),h=a("./processDefinition/diagramPlugins"),i=d.module("cockpit.plugin.jobDefinition.views",[h.name]);i.config(e),i.controller("JobDefinitionSuspensionStateController",f),i.config(g),b.exports=i}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./processDefinition/diagramPlugins":77,"./processDefinition/jobDefinitionSuspensionState":79,"./processDefinition/jobDefinitionTable":80,"./processDefinition/suspensionStateAction":81}],77:[function(a,b,c){(function(c){"use strict";var d="undefined"!=typeof window?window.angular:"undefined"!=typeof c?c.angular:null,e=a("./jobSuspension"),f=d.module("cockpit.plugin.jobDefinition.views.diagramPlugins",[]);f.config(e),b.exports=f}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./jobSuspension":78}],78:[function(a,b,c){(function(a){"use strict";var c="undefined"!=typeof window?window.angular:"undefined"!=typeof a?a.angular:null,d='\n \n\n';b.exports=["ViewsProvider",function(a){a.registerDefaultView("cockpit.processDefinition.diagram.plugin",{id:"activity-instance-statistics-overlay",overlay:["$scope","control","processData","processDiagram",function(a,b,e,f){function g(a,b){return b.filter(function(b){return b.activityId===a.id})}var h=b.getViewer(),i=h.get("overlays"),j=h.get("elementRegistry"),k={};e.observe(["jobDefinitions"],function(b){j.forEach(function(e){function h(){return l.some(function(a){return a.suspended})}var j=f.bpmnElements[e.businessObject.id],l=g(j,b);l.length>0&&(j.isSelectable=!0),a.$watch(h,function(a){var b=k[j.id];!b&&a&&(b=c.element(d),i.add(j.id,{position:{top:0,right:0},show:{minZoom:-(1/0),maxZoom:+(1/0)},html:b[0]}),k[j.id]=b),b&&(a?(b.show(),b.tooltip({container:"body",title:"Suspended Job Definition",placement:"top"})):b.hide())})})})}]})}]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],79:[function(a,b,c){(function(a){"use strict";var c="undefined"!=typeof window?window.angular:"undefined"!=typeof a?a.angular:null;b.exports=["$scope","$http","$filter","Uri","Notifications","$modalInstance","jobDefinition","$translate","fixDate",function(a,b,d,e,f,g,h,i,j){var k="BEFORE_UPDATE",l="PERFORM_UDPATE",m="SUCCESS",n="FAIL",o=d("date"),p="yyyy-MM-dd'T'HH:mm:ss";a.jobDefinition=h,a.status=k,a.data={includeJobs:!0,executeImmediately:!0,executionDate:o(Date.now(),p)},a.$on("$routeChangeStart",function(){g.close(a.status)}),a.updateSuspensionState=function(){a.status=l;var c={};c.suspended=!h.suspended,c.includeJobs=a.data.includeJobs,c.executionDate=a.data.executeImmediately?null:j(a.data.executionDate),b.put(e.appUri("engine://engine/:engine/job-definition/"+h.id+"/suspended/"),c).success(function(){a.status=m,a.data.executeImmediately?f.addMessage({status:i.instant("PLUGIN_JOBDEFINITION_STATE_STATUS"),message:i.instant("PLUGIN_JOBDEFINITION_STATE_MESSAGES_1"),exclusive:!0}):f.addMessage({status:i.instant("PLUGIN_JOBDEFINITION_STATE_STATUS"),message:i.instant("PLUGIN_JOBDEFINITION_STATE_MESSAGES_2"),exclusive:!0})}).error(function(b){a.status=n,a.data.executeImmediately?f.addError({status:i.instant("PLUGIN_JOBDEFINITION_STATE_STATUS"),message:i.instant("PLUGIN_JOBDEFINITION_STATE_ERR_1",{message:b.message}),exclusive:!0}):f.addError({status:i.instant("PLUGIN_JOBDEFINITION_STATE_STATUS"),message:i.instant("PLUGIN_JOBDEFINITION_STATE_ERR_2",{message:b.message}),exclusive:!0})})},a.isValid=function(){var a=c.element('[name="updateSuspensionStateForm"]').scope();return!(!a||!a.updateSuspensionStateForm)&&a.updateSuspensionStateForm.$valid},a.close=function(b){var c={};c.status=b,c.suspended=!h.suspended,c.executeImmediately=a.data.executeImmediately,c.executionDate=a.data.executionDate,g.close(c)}}]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],80:[function(a,b,c){(function(c){"use strict";var d="undefined"!=typeof window?window.angular:"undefined"!=typeof c?c.angular:null,e=a("../../../../../../common/scripts/util/search-widget-utils"),f='\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n\n \n \n \n\n \n
\n \n {{ \'PLUGIN_JOBDEFINITION_SUSPENDED\' | translate }}\n \n \n {{ \'PLUGIN_JOBDEFINITION_ACTIVE\' | translate }}\n \n \n \n {{ jobDefinition.activityName }}\n \n \n {{ jobDefinition.jobType }}\n \n {{ jobDefinition.jobConfiguration }}\n \n {{ jobDefinition.overridingJobPriority }}\n \n \n \n \n
\n \n {{ \'PLUGIN_JOBDEFINITION_LOADING_JOB\' | translate }}\n
\n {{ \'PLUGIN_JOBDEFINITION_NO_JOB_DEFINITION\' | translate }}\n
\n\n',g=["$scope","Views","$translate","localConf",function(a,b,c,f){function g(a){f.set("sortJobDefTab",a)}function h(a){return f.get("sortJobDefTab",a)}function i(b,c){a.jobDefinitions=null;var e=b.activityIds;if(!e||!e.length)return void(a.jobDefinitions=c);var f=[];d.forEach(c,function(a){var b=a.activityId;e.indexOf(b)!=-1&&f.push(a)}),a.jobDefinitions=f}a.headColumns=[{"class":"state",request:"suspended",sortable:!0,content:c.instant("PLUGIN_JOBDEFINITION_STATE")},{"class":"activity",request:"activityName",sortable:!0,content:c.instant("PLUGIN_JOBDEFINITION_ACTIVITY")},{"class":"type",request:"jobType",sortable:!0,content:c.instant("PLUGIN_JOBDEFINITION_TYPE")},{"class":"configuration",request:"jobConfiguration",sortable:!0,content:c.instant("PLUGIN_JOBDEFINITION_CONFIGURATION")},{"class":"overriding-job-priority",request:"overridingJobPriority",sortable:!0,content:c.instant("PLUGIN_JOBDEFINITION_JOB_PRIORITY")},{"class":"action",request:"action",sortable:!1,content:c.instant("PLUGIN_JOBDEFINITION_ACTION")}],a.sortObj=h({sortBy:"suspended",sortOrder:"asc",sortReverse:!1}),a.onSortChange=function(b){b=b||a.sortObj,b.sortReverse="asc"!==b.sortOrder,g(b),a.sortObj=b};var j=a.processData.newChild(a);j.observe(["filter","jobDefinitions","bpmnElements"],function(a,b){i(a,b)}),a.jobDefinitionVars={read:["jobDefinition","processData","filter"]},a.jobDefinitionActions=b.getProviders({component:"cockpit.jobDefinition.action"}),a.getSearchQueryForSearchType=e.getSearchQueryForSearchType.bind(null,"activityIdIn")}],h=function(a){a.registerDefaultView("cockpit.processDefinition.runtime.tab",{id:"job-definition-table",label:"PLUGIN_JOB_DEFINITION_LABEL",template:f,controller:g,priority:2})};h.$inject=["ViewsProvider"],b.exports=h}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../../../../../common/scripts/util/search-widget-utils":86}],81:[function(a,b,c){(function(a){"use strict";var c="undefined"!=typeof window?window.angular:"undefined"!=typeof a?a.angular:null,d='\n\n \n\n\n \n\n\n',e='\n\n\n\n\n\n\n',f=function(a){a.registerDefaultView("cockpit.jobDefinition.action",{id:"update-suspension-state",template:d,controller:["$scope","$rootScope","search","$modal",function(a,b,d,f){a.openSuspensionStateDialog=function(d){var g=f.open({resolve:{jobDefinition:function(){return d}},controller:"JobDefinitionSuspensionStateController",template:e});g.result.then(function(e){"SUCCESS"===e.status&&(e.executeImmediately&&(d.suspended=e.suspended,b.$broadcast("$jobDefinition.suspensionState.changed",a.jobDefinition)),a.processData.set("filter",c.extend({},a.filter)))})}}],priority:50})};f.$inject=["ViewsProvider"],b.exports=f}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],82:[function(a,b,c){(function(c){"use strict";var d="undefined"!=typeof window?window.angular:"undefined"!=typeof c?c.angular:null,e=a("./views/main");b.exports=d.module("cockpit.plugin.tasks",[e.name])}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./views/main":84}],83:[function(a,b,c){"use strict";var d='\n
\n
\n
\n
\n

{{ \'PLUGIN_TASK_ASSIGNMENT_BY_TYPE\' | translate }}

\n
\n \n \n \n \n \n \n \n\n \n \n \n \n \n \n\n \n \n \n \n \n \n
{{ \'PLUGIN_TASK_TASKS\' | translate }}{{ \'PLUGIN_TASK_TYPES\' | translate }}
\n \n {{ openTasksCount }}\n \n {{ openTasksCount }}\n \n {{ \'PLUGIN_TASK_TOTAL\' | translate }}
\n \n {{ taskStatistic.count }}\n \n {{ taskStatistic.count }}\n \n {{ taskStatistic.label }}
\n
\n
\n\n
\n
\n
\n

{{ \'PLUGIN_TASK_ASSIGNMENT_BY_GROUP\' | translate }}

\n
\n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n
{{ \'PLUGIN_TASK_TASKS\' | translate }}{{ \'PLUGIN_TASK_GROUP\' | translate }}
{{ taskGroup.taskCount }}\n {{ taskGroup.taskCount }}\n {{ formatGroupName(taskGroup.groupName) }}
\n

\n \n {{ \'PLUGIN_TASK_LEGEND_FOOTER\' | translate }}\n

\n
\n
\n
\n\n'; b.exports=["ViewsProvider",function(a){a.registerDefaultView("cockpit.tasks.dashboard",{id:"task-dashboard",label:"PLUGIN_TASK_DASHBOARD_TITLE",template:d,controller:["$scope","$q","Views","camAPI","dataDepend","search","Notifications","$translate",function(a,b,c,d,e,f,g,h){var i=e.create(a),j=d.resource("history"),k=d.resource("task-report");a.taskStatistics=[{state:void 0,label:h.instant("PLUGIN_TASK_ASSIGNED_TO_USER"),count:0,search:"openAssignedTasks"},{state:void 0,label:h.instant("PLUGIN_TASK_ASSIGNED_TO_ONE"),count:0,search:"openGroupTasks"},{state:void 0,label:h.instant("PLUGIN_TASK_ASSIGNED_UNASSIGNED"),count:0,search:"openUnassignedTasks"}];var l=function(a,c,d,e){var f=b.defer(),i=function(){return"countByCandidateGroup"===d?h.instant("PLUGIN_TASK_ERROR_COUNT"):h.instant("PLUGIN_TASK_ERROR_FETCH",{res:a})},j=function(a,b){a?(g.addError({status:h.instant("PLUGIN_TASK_ASSIGNED_ERR_COULD_NOT",{err:i}),message:a.toString()}),f.reject(a)):f.resolve(b)};return void 0==e||null==e?c[d](j):c[d](e,j),f.promise},m=function(){return{unfinished:!0}};i.provide("openTaskCount",function(){return l(h.instant("PLUGIN_TASK_ERROR_OPEN_TASKS"),j,"taskCount",m())}),i.provide("assignedToUserCount",function(){var a=m();return a.assigned=!0,l(h.instant("PLUGIN_TASK_ERROR_ASSIGNED_TO_USERS"),j,"taskCount",a)}),i.provide("assignedToGroupCount",function(){var a=m();return a.unassigned=!0,a.withCandidateGroups=!0,l(h.instant("PLUGIN_TASK_ERROR_ASSIGNED_TO_GROUPS"),j,"taskCount",a)}),i.provide("notAssignedCount",function(){var a=m();return a.unassigned=!0,a.withoutCandidateGroups=!0,l(h.instant("PLUGIN_TASK_ERROR_UNASSIGNED"),j,"taskCount",a)}),i.provide("countByCandidateGroup",function(){return l(h.instant("PLUGIN_TASK_ERROR_PER_GROUP"),k,"countByCandidateGroup")}),a.openTasksState=i.observe(["openTaskCount"],function(b){a.openTasksCount=b.count||0}),a.taskStatistics[0].state=i.observe(["assignedToUserCount"],function(b){a.taskStatistics[0].count=b.count||0}),a.taskStatistics[1].state=i.observe(["assignedToGroupCount"],function(b){a.taskStatistics[1].count=b.count||0}),a.taskStatistics[2].state=i.observe(["notAssignedCount"],function(b){a.taskStatistics[2].count=b.count||0}),a.taskGroupState=i.observe(["countByCandidateGroup"],function(b){a.taskGroups=b}),a.formatGroupName=function(a){return null==a?h.instant("PLUGIN_TASK_ASSIGNED_WITHOUT_GROUP"):a};var n=c.getProviders({component:"cockpit.tasks.dashboard"}),o=a.hasSearchPlugin=n.filter(function(a){return"search-tasks"===a.id}).length>0;if(o){var p=function(a,b,c){return arguments.length<3&&(b="eq",c=""),{type:a,operator:b,value:c,name:""}},q=function(){return[p("unfinished")]},r=q();a.createSearch=function(a,b){if("statistics"===b)switch(a){case"openAssignedTasks":r.push(p("assigned"));break;case"openGroupTasks":r.push(p("withCandidateGroups")),r.push(p("unassigned"));break;case"openUnassignedTasks":r.push(p("withoutCandidateGroups")),r.push(p("unassigned"))}else null!=a?r.push(p("taskHadCandidateGroup","eq",a)):(r.push(p("withoutCandidateGroups")),r.push(p("unassigned")));f.updateSilently({searchQuery:JSON.stringify(r)},!0),r=q()},f().hasOwnProperty("searchQuery")||f.updateSilently({searchQuery:JSON.stringify(r)},!0)}}],priority:0})}]},{}],84:[function(a,b,c){(function(c){"use strict";var d="undefined"!=typeof window?window.angular:"undefined"!=typeof c?c.angular:null,e=a("./dashboard/task-dashboard"),f=d.module("cockpit.plugin.tasks.views",[]);f.config(e),b.exports=f}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./dashboard/task-dashboard":83}],85:[function(a,b,c){"use strict";function d(a,b){return a.indexOf(b)!==-1}b.exports=d},{}],86:[function(a,b,c){"use strict";function d(a,b){b=[].concat(b);var c=JSON.stringify(q(a,b));return e("searchQuery="+c)}function e(a){return encodeURI(a).replace(/#/g,"%23")}function f(a,b,c){return c=C.isArray(c)?c:[],!C.equals(g(a,c),g(b,c))}function g(a,b){return C.isObject(a)?i(h(a,b)):a}function h(a,b){return Object.keys(a).reduce(function(c,d){var e=a[d];return E(b,d)&&(c[d]=e),c},{})}function i(a){return Object.keys(a).reduce(function(b,c){var d=a[c];return null!=d&&(b[c]=d),b},{})}function j(a,b){var c=JSON.parse(b.searchQuery||"[]");return k(a,c)}function k(a,b){return b.filter(function(b){return b.type===a}).map(function(a){return a.value})}function l(a,b,c){var d=m(a,c,b),e=n(c,a,b);return d.concat(q(b,e))}function m(a,b,c){return a.filter(function(a){return a.type!==c||!E(b,a.value)})}function n(a,b,c){var d=b.filter(function(a){return a.type===c}).map(function(a){return a.value});return a.filter(function(a){return!E(d,a)})}function o(a,b,c){return p(b,a).concat(q(b,c))}function p(a,b){return b.filter(function(b){return b.type!==a})}function q(a,b){return b.map(r.bind(null,a))}function r(a,b){return{type:a,operator:"eq",value:b}}function s(a,b,c){return a=C.isArray(a)?a:[],b=C.isArray(b)?b:[],c=C.isArray(c)?c:["variables"],b=b.concat(c),a.reduce(t.bind(null,b,c),{})}function t(a,b,c,d){var e=u(d,b),f=x(d,e,b);return E(b,e)&&(f=A(d,f)),E(a,e)?c[e]=B(c,e,f):c[e]=f,c}function u(a,b){var c=a.type.value.key,d=a.operator.value.key;return v(c)&&(c=c.slice(0,-4)),w(d)&&!E(b,c)&&(c+=d),c}function v(a){return a.indexOf("Date")!==-1}function w(a){return E(["After","Before","Like"],a)}function x(a){return!!a.basic||y(a.value.value,a.operator.value.key,a)}function y(a,b,c){var d=/(\\%)|(\\_)/g,e=/(\%)|(\_)/;return"like"!==b.toLowerCase()||e.test(a.replace(d,""))?c.allowDates&&F.test(a)?D(a).format("YYYY-MM-DDTHH:mm:ss.SSSZZ"):a:"%"+a+"%"}function z(a){return isNaN(a)||""===a.trim()?"true"===a||"false"!==a&&("NULL"===a?null:0===a.indexOf("'")&&a.lastIndexOf("'")===a.length-1?a.substr(1,a.length-2):a):+a}function A(a,b){return{name:a.name.value,operator:a.operator.value.key,value:z(b)}}function B(a,b,c){return C.isArray(a[b])?a[b].concat([c]):[c]}var C=a("camunda-commons-ui/vendor/angular"),D=a("camunda-commons-ui/vendor/moment"),E=a("./includes");b.exports={getSearchQueryForSearchType:d,getActivityIdsFromUrlParams:j,replaceActivitiesInSearchQuery:o,createSearchQueryForSearchWidget:s,shouldUpdateFilter:f,createSearchesForActivityIds:q,encodeQuery:e,updateSearchValuesForTypeInCtrlMode:l};var F=/^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(|\.[0-9]{0,4})$/},{"./includes":85,"camunda-commons-ui/vendor/angular":3,"camunda-commons-ui/vendor/moment":4}]},{},[50])(50)});