pmci tenant management

main
Sven Ketelsen 2 years ago
parent 8c8d4964f8
commit 4271500448

@ -2,7 +2,7 @@
"name" : "service-replay-setup",
"configKey" : "service-replay-setup",
"tabExpression" : "Service {{ data.service.name?:'neu' }}",
"readonlyExpression" : "data.vorgang_status > 90",
"readonlyExpression" : "data.vorgang_status > 0",
"components" : [ {
"type" : "columns",
"key" : "dossier",

@ -41,6 +41,13 @@
"label" : "TenantId",
"tags" : [ ]
},
"id" : {
"type" : "string",
"classification" : "PRIVATE",
"searchable" : true,
"label" : "Id",
"tags" : [ ]
},
"jobs" : {
"type" : "object",
"classification" : "PRIVATE",
@ -97,6 +104,11 @@
"type" : "object",
"classification" : "PRIVATE",
"fields" : {
"connect_features" : {
"type" : "string",
"classification" : "PRIVATE",
"tags" : [ ]
},
"cluster" : {
"type" : "object",
"classification" : "PRIVATE",
@ -108,6 +120,27 @@
"searchable" : true,
"label" : "Cluster Name",
"tags" : [ ]
},
"service" : {
"type" : "string",
"classification" : "PRIVATE",
"searchable" : true,
"label" : "Cluster Service",
"tags" : [ ]
},
"size" : {
"type" : "integer",
"classification" : "PRIVATE",
"searchable" : true,
"label" : "Cluster Größe",
"tags" : [ ]
},
"stage" : {
"type" : "string",
"classification" : "PRIVATE",
"searchable" : true,
"label" : "Cluster Stage",
"tags" : [ ]
}
},
"tags" : [ ]
@ -126,12 +159,31 @@
"label" : "Cluster Name",
"tags" : [ ]
},
"id" : {
"type" : "string",
"classification" : "PRIVATE",
"searchable" : true,
"label" : "Id",
"tags" : [ ]
},
"tenant_key" : {
"type" : "string",
"classification" : "PRIVATE",
"searchable" : true,
"label" : "Tenant Schlüssel",
"tags" : [ ]
},
"link" : {
"type" : "string",
"classification" : "PRIVATE",
"searchable" : true,
"label" : "Link",
"tags" : [ ]
},
"tenant_id" : {
"type" : "string",
"classification" : "PRIVATE",
"tags" : [ ]
}
},
"tags" : [ ]
@ -154,6 +206,13 @@
"classification" : "PRIVATE",
"label" : "Tenant",
"fields" : {
"id" : {
"type" : "string",
"classification" : "PRIVATE",
"searchable" : true,
"label" : "Id",
"tags" : [ ]
},
"key" : {
"type" : "string",
"classification" : "PRIVATE",
@ -164,6 +223,18 @@
},
"tags" : [ ]
},
"tenant_id" : {
"type" : "string",
"classification" : "PRIVATE",
"tags" : [ ]
},
"tenant_key" : {
"type" : "string",
"classification" : "PRIVATE",
"searchable" : true,
"label" : "Tenant Schlüssel",
"tags" : [ ]
},
"vorgang_status" : {
"type" : "long",
"classification" : "PRIVATE",

@ -17,6 +17,13 @@
"label" : "Ersteller",
"tags" : [ ]
},
"id" : {
"type" : "string",
"classification" : "PRIVATE",
"searchable" : true,
"label" : "Id",
"tags" : [ ]
},
"keycloak_admin" : {
"type" : "object",
"classification" : "PRIVATE",
@ -54,12 +61,54 @@
"label" : "Mandantenschlüssel",
"tags" : [ ]
},
"id" : {
"type" : "string",
"classification" : "PRIVATE",
"searchable" : true,
"label" : "Id",
"tags" : [ ]
},
"name" : {
"type" : "string",
"classification" : "PRIVATE",
"searchable" : true,
"label" : "Mandantenname",
"tags" : [ ]
},
"stage" : {
"type" : "string",
"classification" : "PRIVATE",
"searchable" : true,
"label" : "Cluster Stage",
"tags" : [ ]
},
"user_ids" : {
"type" : "string",
"classification" : "PRIVATE",
"tags" : [ ]
},
"admin" : {
"type" : "object",
"classification" : "PRIVATE",
"label" : "Admin",
"fields" : {
"email" : {
"type" : "string",
"classification" : "PRIVATE",
"tags" : [ ]
},
"first_name" : {
"type" : "string",
"classification" : "PRIVATE",
"tags" : [ ]
},
"last_name" : {
"type" : "string",
"classification" : "PRIVATE",
"tags" : [ ]
}
},
"tags" : [ ]
}
},
"tags" : [ ]

@ -945,7 +945,7 @@ return !is_wordpress_active_old && is_wordpress_active_new;
<camunda:in variables="all" />
<camunda:inputOutput>
<camunda:inputParameter name="to">
<camunda:script scriptFormat="groovy">datasources.query('data-entity-tenants').processScope(contextScopeId, contextProcessDefinitionKey).parameters([id:tenant.id]).list()[0].admin.email</camunda:script>
<camunda:script scriptFormat="groovy">datasources.query('data-entity-tenants').processScope(contextScopeId, contextProcessId).parameters([id:tenant.id]).list()[0].admin.email</camunda:script>
</camunda:inputParameter>
<camunda:inputParameter name="toUsers" />
<camunda:inputParameter name="toGroups" />

@ -186,7 +186,7 @@
<camunda:in variables="all" />
<camunda:inputOutput>
<camunda:inputParameter name="to">
<camunda:script scriptFormat="groovy">datasources.query('data-entity-tenants').processScope(contextScopeId, contextProcessDefinitionKey).parameters(['id':tenant.id]).list()[0].admin.email</camunda:script>
<camunda:script scriptFormat="groovy">datasources.query('data-entity-tenants').processScope(contextScopeId, contextProcessId).parameters(['id':tenant.id]).list()[0].admin.email</camunda:script>
</camunda:inputParameter>
<camunda:inputParameter name="toUsers" />
<camunda:inputParameter name="toGroups" />

@ -185,7 +185,7 @@
<camunda:in variables="all" />
<camunda:inputOutput>
<camunda:inputParameter name="to">
<camunda:script scriptFormat="groovy">datasources.query('data-entity-tenants').processScope(contextScopeId, contextProcessDefinitionKey).parameters([id:tenant.id]).list()[0].admin.email</camunda:script>
<camunda:script scriptFormat="groovy">datasources.query('data-entity-tenants').processScope(contextScopeId, contextProcessId).parameters([id:tenant.id]).list()[0].admin.email</camunda:script>
</camunda:inputParameter>
<camunda:inputParameter name="toUsers" />
<camunda:inputParameter name="toGroups" />

@ -7,28 +7,61 @@
<bpmn2:startEvent id="Event_02kqmmg" camunda:asyncAfter="true">
<bpmn2:outgoing>Flow_1ow8whd</bpmn2:outgoing>
</bpmn2:startEvent>
<bpmn2:scriptTask id="Activity_1olpao9" name="ansible-start.groovy" scriptFormat="groovy" camunda:resource="ansible-start.groovy">
<bpmn2:incoming>Flow_1ow8whd</bpmn2:incoming>
<bpmn2:outgoing>Flow_0qfq760</bpmn2:outgoing>
</bpmn2:scriptTask>
<bpmn2:sequenceFlow id="Flow_1ow8whd" sourceRef="Event_02kqmmg" targetRef="Activity_1olpao9" />
<bpmn2:sequenceFlow id="Flow_0qfq760" sourceRef="Activity_1olpao9" targetRef="Gateway_0n3j4hy" />
<bpmn2:sequenceFlow id="Flow_1ow8whd" sourceRef="Event_02kqmmg" targetRef="Gateway_0n3j4hy" />
<bpmn2:sequenceFlow id="Flow_1nqz9ya" sourceRef="Activity_1hwc1va" targetRef="Activity_0wn3csk" />
<bpmn2:sequenceFlow id="Flow_1kxc9t0" sourceRef="Activity_0wn3csk" targetRef="Activity_12p300g" />
<bpmn2:sequenceFlow id="Flow_0tmasvl" name="simulation active " sourceRef="Gateway_0n3j4hy" targetRef="Gateway_0p57e80">
<bpmn2:sequenceFlow id="Flow_0tmasvl" name="simulation " sourceRef="Gateway_0n3j4hy" targetRef="Activity_0au0xwc">
<bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression">${simulation}</bpmn2:conditionExpression>
</bpmn2:sequenceFlow>
<bpmn2:sequenceFlow id="Flow_1cnt5hf" sourceRef="Activity_0kftgey" targetRef="Gateway_11tein2" />
<bpmn2:sequenceFlow id="Flow_1nuku1o" sourceRef="Activity_12p300g" targetRef="Event_0tax83l" />
<bpmn2:sequenceFlow id="Flow_0gcsmj7" sourceRef="Event_0tax83l" targetRef="Gateway_0p57e80" />
<bpmn2:sequenceFlow id="Flow_1rngywr" name="default" sourceRef="Gateway_0n3j4hy" targetRef="Activity_1ewqrs7" />
<bpmn2:sequenceFlow id="Flow_0npv638" sourceRef="Gateway_0p57e80" targetRef="Activity_136brby" />
<bpmn2:sequenceFlow id="Flow_0gcsmj7" sourceRef="Event_0tax83l" targetRef="Activity_136brby" />
<bpmn2:sequenceFlow id="Flow_1rngywr" name="default" sourceRef="Gateway_0n3j4hy" targetRef="Activity_0apf1ff" />
<bpmn2:sequenceFlow id="Flow_1ju13h8" sourceRef="Activity_136brby" targetRef="Event_0hla739" />
<bpmn2:sequenceFlow id="Flow_1xdj53u" sourceRef="Activity_1ewqrs7" targetRef="Activity_0kftgey" />
<bpmn2:sequenceFlow id="Flow_065a4cq" name="job_template_id found" sourceRef="Gateway_11tein2" targetRef="Activity_1hwc1va">
<bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression">${job_template_id != -1}</bpmn2:conditionExpression>
</bpmn2:sequenceFlow>
<bpmn2:sequenceFlow id="Flow_0mtnk56" name="job_template_id not found" sourceRef="Gateway_11tein2" targetRef="Event_1bfppnu">
<bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression">${job_template_id == -1}</bpmn2:conditionExpression>
</bpmn2:sequenceFlow>
<bpmn2:sequenceFlow id="Flow_0ny162r" sourceRef="Event_07ol7ch" targetRef="Event_1gny0cr" />
<bpmn2:sequenceFlow id="Flow_0x3dixj" sourceRef="Gateway_1h1qpb8" targetRef="Activity_1le7sgk" />
<bpmn2:sequenceFlow id="Flow_19zzqmc" sourceRef="Activity_0au0xwc" targetRef="Gateway_1h1qpb8" />
<bpmn2:sequenceFlow id="Flow_1igjy4m" sourceRef="Activity_0apf1ff" targetRef="Gateway_1h1qpb8" />
<bpmn2:sequenceFlow id="Flow_1u10qvz" sourceRef="Activity_1le7sgk" targetRef="Activity_1ewqrs7" />
<bpmn2:exclusiveGateway id="Gateway_0n3j4hy" default="Flow_1rngywr">
<bpmn2:incoming>Flow_0qfq760</bpmn2:incoming>
<bpmn2:incoming>Flow_1ow8whd</bpmn2:incoming>
<bpmn2:outgoing>Flow_0tmasvl</bpmn2:outgoing>
<bpmn2:outgoing>Flow_1rngywr</bpmn2:outgoing>
</bpmn2:exclusiveGateway>
<bpmn2:exclusiveGateway id="Gateway_1h1qpb8">
<bpmn2:incoming>Flow_19zzqmc</bpmn2:incoming>
<bpmn2:incoming>Flow_1igjy4m</bpmn2:incoming>
<bpmn2:outgoing>Flow_0x3dixj</bpmn2:outgoing>
</bpmn2:exclusiveGateway>
<bpmn2:task id="Activity_0au0xwc" name="Auszuführende Aktion auf NOOP ändern">
<bpmn2:extensionElements>
<camunda:inputOutput>
<camunda:outputParameter name="currentSmardigoManagementAction">pmci-empty-playbook</camunda:outputParameter>
</camunda:inputOutput>
</bpmn2:extensionElements>
<bpmn2:incoming>Flow_0tmasvl</bpmn2:incoming>
<bpmn2:outgoing>Flow_19zzqmc</bpmn2:outgoing>
</bpmn2:task>
<bpmn2:task id="Activity_0apf1ff" name="Auszuführende Aktion setzen">
<bpmn2:extensionElements>
<camunda:inputOutput>
<camunda:outputParameter name="currentSmardigoManagementAction">${smardigoManagementAction}</camunda:outputParameter>
</camunda:inputOutput>
</bpmn2:extensionElements>
<bpmn2:incoming>Flow_1rngywr</bpmn2:incoming>
<bpmn2:outgoing>Flow_1igjy4m</bpmn2:outgoing>
</bpmn2:task>
<bpmn2:scriptTask id="Activity_1le7sgk" name="ansible-start.groovy" scriptFormat="groovy" camunda:resource="ansible-start.groovy">
<bpmn2:incoming>Flow_0x3dixj</bpmn2:incoming>
<bpmn2:outgoing>Flow_1u10qvz</bpmn2:outgoing>
</bpmn2:scriptTask>
<bpmn2:callActivity id="Activity_1ewqrs7" name="Management Benachrichtigung senden" calledElement="smardigo-management-message">
<bpmn2:extensionElements>
<camunda:in businessKey="#{execution.processBusinessKey}" />
@ -37,48 +70,9 @@
<camunda:in sourceExpression="${smardigoManagementAction}" target="activitySubtitle" />
<camunda:in source="simulation" target="simulation" />
</bpmn2:extensionElements>
<bpmn2:incoming>Flow_1rngywr</bpmn2:incoming>
<bpmn2:incoming>Flow_1u10qvz</bpmn2:incoming>
<bpmn2:outgoing>Flow_1xdj53u</bpmn2:outgoing>
</bpmn2:callActivity>
<bpmn2:sequenceFlow id="Flow_1xdj53u" sourceRef="Activity_1ewqrs7" targetRef="Activity_0kftgey" />
<bpmn2:sequenceFlow id="Flow_065a4cq" name="job_template_id found" sourceRef="Gateway_11tein2" targetRef="Activity_1hwc1va">
<bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression">${job_template_id != -1}</bpmn2:conditionExpression>
</bpmn2:sequenceFlow>
<bpmn2:exclusiveGateway id="Gateway_0p57e80">
<bpmn2:incoming>Flow_0gcsmj7</bpmn2:incoming>
<bpmn2:incoming>Flow_0tmasvl</bpmn2:incoming>
<bpmn2:outgoing>Flow_0npv638</bpmn2:outgoing>
</bpmn2:exclusiveGateway>
<bpmn2:endEvent id="Event_0hla739">
<bpmn2:incoming>Flow_1ju13h8</bpmn2:incoming>
</bpmn2:endEvent>
<bpmn2:scriptTask id="Activity_136brby" name="ansible-end.groovy" scriptFormat="groovy" camunda:resource="ansible-end.groovy">
<bpmn2:incoming>Flow_0npv638</bpmn2:incoming>
<bpmn2:outgoing>Flow_1ju13h8</bpmn2:outgoing>
</bpmn2:scriptTask>
<bpmn2:intermediateCatchEvent id="Event_0tax83l" name="Ausführung der Aktion abwarten">
<bpmn2:incoming>Flow_1nuku1o</bpmn2:incoming>
<bpmn2:outgoing>Flow_0gcsmj7</bpmn2:outgoing>
<bpmn2:messageEventDefinition id="MessageEventDefinition_193tmaa" messageRef="Message_13oyyv2" />
</bpmn2:intermediateCatchEvent>
<bpmn2:scriptTask id="Activity_12p300g" name="Aktuelle Job Id übernehmen" scriptFormat="groovy">
<bpmn2:incoming>Flow_1kxc9t0</bpmn2:incoming>
<bpmn2:outgoing>Flow_1nuku1o</bpmn2:outgoing>
<bpmn2:script>def process = processes.byId(contextScopeId, contextProcessId)
if(awxResponse != null &amp;&amp; awxResponse.job != null) {
def jobs = process.getVariable('jobs')
jobs = !!jobs ? jobs : []
jobs.add(0, awxResponse.job)
process.setVariable('jobs', jobs)
process.setVariable('current_job_id', awxResponse.job)
process.createComment('current_job_id := ' + awxResponse.job)
} else {
process.createComment('current_job_error: response-code: ' + awxResponseCode + ' - response-body: ' + awxResponse)
}
</bpmn2:script>
</bpmn2:scriptTask>
<bpmn2:task id="Activity_1hwc1va" name="AWX REST-Parameter erzeugen">
<bpmn2:extensionElements>
<camunda:inputOutput>
@ -91,27 +85,11 @@ if(awxResponse != null &amp;&amp; awxResponse.job != null) {
<bpmn2:incoming>Flow_065a4cq</bpmn2:incoming>
<bpmn2:outgoing>Flow_1nqz9ya</bpmn2:outgoing>
</bpmn2:task>
<bpmn2:serviceTask id="Activity_0wn3csk" name="AWX Provisionierung starten" camunda:delegateExpression="${rest.post(&#39;awx&#39;, awxPath).responseJSONObject(&#39;awxResponse&#39;).responseCode(&#39;awxResponseCode&#39;).bodyJSONMap(awxRequestBody)}">
<bpmn2:extensionElements>
<camunda:inputOutput>
<camunda:inputParameter name="awxRequestBody">
<camunda:map>
<camunda:entry key="extra_vars">${extra_vars}</camunda:entry>
</camunda:map>
</camunda:inputParameter>
</camunda:inputOutput>
</bpmn2:extensionElements>
<bpmn2:incoming>Flow_1nqz9ya</bpmn2:incoming>
<bpmn2:outgoing>Flow_1kxc9t0</bpmn2:outgoing>
</bpmn2:serviceTask>
<bpmn2:exclusiveGateway id="Gateway_11tein2">
<bpmn2:incoming>Flow_1cnt5hf</bpmn2:incoming>
<bpmn2:outgoing>Flow_065a4cq</bpmn2:outgoing>
<bpmn2:outgoing>Flow_0mtnk56</bpmn2:outgoing>
</bpmn2:exclusiveGateway>
<bpmn2:sequenceFlow id="Flow_0mtnk56" name="job_template_id not found" sourceRef="Gateway_11tein2" targetRef="Event_1bfppnu">
<bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression">${job_template_id == -1}</bpmn2:conditionExpression>
</bpmn2:sequenceFlow>
<bpmn2:endEvent id="Event_1bfppnu" name="job_template_id not found">
<bpmn2:incoming>Flow_0mtnk56</bpmn2:incoming>
<bpmn2:errorEventDefinition id="ErrorEventDefinition_1ww36kh" errorRef="Error_1m76bd5" />
@ -119,7 +97,7 @@ if(awxResponse != null &amp;&amp; awxResponse.job != null) {
<bpmn2:scriptTask id="Activity_0kftgey" name="Aktuelle Job Id übernehmen" scriptFormat="groovy" camunda:resultVariable="job_template_id">
<bpmn2:incoming>Flow_1xdj53u</bpmn2:incoming>
<bpmn2:outgoing>Flow_1cnt5hf</bpmn2:outgoing>
<bpmn2:script>def templates = datasources.query('awx-job-templates').processScope(contextScopeId, contextProcessId).parameters([name:smardigoManagementAction]).list();
<bpmn2:script>def templates = datasources.query('awx-job-templates').processScope(contextScopeId, contextProcessId).parameters([name:currentSmardigoManagementAction]).list();
templates.size()==0 ? -1 : templates[0]['id'];</bpmn2:script>
</bpmn2:scriptTask>
@ -131,7 +109,49 @@ templates.size()==0 ? -1 : templates[0]['id'];</bpmn2:script>
<bpmn2:outgoing>Flow_0ny162r</bpmn2:outgoing>
<bpmn2:errorEventDefinition id="ErrorEventDefinition_0yv2don" />
</bpmn2:boundaryEvent>
<bpmn2:sequenceFlow id="Flow_0ny162r" sourceRef="Event_07ol7ch" targetRef="Event_1gny0cr" />
<bpmn2:serviceTask id="Activity_0wn3csk" name="AWX Provisionierung starten" camunda:delegateExpression="${rest.post(&#39;awx&#39;, awxPath).responseJSONObject(&#39;awxResponse&#39;).responseCode(&#39;awxResponseCode&#39;).bodyJSONMap(awxRequestBody)}">
<bpmn2:extensionElements>
<camunda:inputOutput>
<camunda:inputParameter name="awxRequestBody">
<camunda:map>
<camunda:entry key="extra_vars">${extra_vars}</camunda:entry>
</camunda:map>
</camunda:inputParameter>
</camunda:inputOutput>
</bpmn2:extensionElements>
<bpmn2:incoming>Flow_1nqz9ya</bpmn2:incoming>
<bpmn2:outgoing>Flow_1kxc9t0</bpmn2:outgoing>
</bpmn2:serviceTask>
<bpmn2:scriptTask id="Activity_12p300g" name="Aktuelle Job Id übernehmen" scriptFormat="groovy">
<bpmn2:incoming>Flow_1kxc9t0</bpmn2:incoming>
<bpmn2:outgoing>Flow_1nuku1o</bpmn2:outgoing>
<bpmn2:script>def process = processes.byId(contextScopeId, contextProcessId)
if(awxResponse != null &amp;&amp; awxResponse.job != null) {
def jobs = process.getVariable('jobs')
jobs = !!jobs ? jobs : []
jobs.add(0, awxResponse.job)
process.setVariable('jobs', jobs)
process.setVariable('current_job_id', awxResponse.job)
process.createComment('current_job_id := ' + awxResponse.job)
} else {
process.createComment('current_job_error: response-code: ' + awxResponseCode + ' - response-body: ' + awxResponse)
}
</bpmn2:script>
</bpmn2:scriptTask>
<bpmn2:intermediateCatchEvent id="Event_0tax83l" name="Ausführung der Aktion abwarten">
<bpmn2:incoming>Flow_1nuku1o</bpmn2:incoming>
<bpmn2:outgoing>Flow_0gcsmj7</bpmn2:outgoing>
<bpmn2:messageEventDefinition id="MessageEventDefinition_193tmaa" messageRef="Message_13oyyv2" />
</bpmn2:intermediateCatchEvent>
<bpmn2:endEvent id="Event_0hla739">
<bpmn2:incoming>Flow_1ju13h8</bpmn2:incoming>
</bpmn2:endEvent>
<bpmn2:scriptTask id="Activity_136brby" name="ansible-end.groovy" scriptFormat="groovy" camunda:resource="ansible-end.groovy">
<bpmn2:incoming>Flow_0gcsmj7</bpmn2:incoming>
<bpmn2:outgoing>Flow_1ju13h8</bpmn2:outgoing>
</bpmn2:scriptTask>
<bpmn2:textAnnotation id="TextAnnotation_0bt6e0d">
<bpmn2:text>Anmerkung
* teams-Benachrichtigung nur, wenn teams_channel_url exisitiert</bpmn2:text>
@ -143,144 +163,160 @@ templates.size()==0 ? -1 : templates[0]['id'];</bpmn2:script>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_12geczp">
<bpmndi:BPMNShape id="Participant_08rb9rc_di" bpmnElement="Participant_08rb9rc" isHorizontal="true">
<dc:Bounds x="350" y="150" width="1700" height="420" />
<dc:Bounds x="350" y="150" width="2110" height="640" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_02kqmmg_di" bpmnElement="Event_02kqmmg">
<dc:Bounds x="402" y="392" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1olpao9_di" bpmnElement="Activity_1olpao9">
<dc:Bounds x="470" y="370" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_0n3j4hy_di" bpmnElement="Gateway_0n3j4hy" isMarkerVisible="true">
<dc:Bounds x="605" y="385" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1ewqrs7_di" bpmnElement="Activity_1ewqrs7" bioc:stroke="rgb(67, 160, 71)" bioc:fill="rgb(200, 230, 201)">
<dc:Bounds x="720" y="370" width="100" height="80" />
<dc:Bounds x="495" y="385" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_0p57e80_di" bpmnElement="Gateway_0p57e80" isMarkerVisible="true">
<dc:Bounds x="1715" y="385" width="50" height="50" />
<bpmndi:BPMNShape id="BPMNShape_0pg6h04" bpmnElement="Gateway_1h1qpb8" isMarkerVisible="true">
<dc:Bounds x="785" y="385" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0kni7xh_di" bpmnElement="Event_0hla739">
<dc:Bounds x="1952" y="392" width="36" height="36" />
<bpmndi:BPMNShape id="Activity_01kui0g_di" bpmnElement="Activity_0au0xwc">
<dc:Bounds x="610" y="520" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_136brby_di" bpmnElement="Activity_136brby">
<dc:Bounds x="1810" y="370" width="100" height="80" />
<bpmndi:BPMNShape id="BPMNShape_0wmlrtf" bpmnElement="Activity_0apf1ff">
<dc:Bounds x="610" y="370" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0tax83l_di" bpmnElement="Event_0tax83l">
<dc:Bounds x="1622" y="392" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1604" y="436" width="79" height="27" />
</bpmndi:BPMNLabel>
<bpmndi:BPMNShape id="BPMNShape_0l6ktpu" bpmnElement="Activity_1le7sgk">
<dc:Bounds x="900" y="370" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0bu6o2b_di" bpmnElement="Activity_12p300g">
<dc:Bounds x="1480" y="370" width="100" height="80" />
<bpmndi:BPMNLabel />
<bpmndi:BPMNShape id="Activity_1ewqrs7_di" bpmnElement="Activity_1ewqrs7" bioc:stroke="rgb(67, 160, 71)" bioc:fill="rgb(200, 230, 201)">
<dc:Bounds x="1080" y="370" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1hwc1va_di" bpmnElement="Activity_1hwc1va">
<dc:Bounds x="1200" y="370" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0wn3csk_di" bpmnElement="Activity_0wn3csk">
<dc:Bounds x="1340" y="370" width="100" height="80" />
<dc:Bounds x="1590" y="370" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_11tein2_di" bpmnElement="Gateway_11tein2" isMarkerVisible="true">
<dc:Bounds x="1045" y="385" width="50" height="50" />
<dc:Bounds x="1435" y="385" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_10n5few_di" bpmnElement="Event_1bfppnu">
<dc:Bounds x="1052" y="242" width="36" height="36" />
<dc:Bounds x="1442" y="242" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1031" y="212" width="78" height="27" />
<dc:Bounds x="1421" y="212" width="78" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1gjmvpo" bpmnElement="Activity_0kftgey">
<dc:Bounds x="880" y="370" width="100" height="80" />
<dc:Bounds x="1270" y="370" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_10hrh8w" bpmnElement="Event_1gny0cr">
<dc:Bounds x="932" y="242" width="36" height="36" />
<dc:Bounds x="1322" y="242" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="911" y="212" width="78" height="27" />
<dc:Bounds x="1301" y="212" width="78" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0wn3csk_di" bpmnElement="Activity_0wn3csk">
<dc:Bounds x="1760" y="370" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0bu6o2b_di" bpmnElement="Activity_12p300g">
<dc:Bounds x="1940" y="370" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0tax83l_di" bpmnElement="Event_0tax83l">
<dc:Bounds x="2112" y="392" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="2094" y="436" width="79" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0kni7xh_di" bpmnElement="Event_0hla739">
<dc:Bounds x="2362" y="392" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_136brby_di" bpmnElement="Activity_136brby">
<dc:Bounds x="2220" y="370" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="TextAnnotation_0bt6e0d_di" bpmnElement="TextAnnotation_0bt6e0d">
<dc:Bounds x="390" y="240" width="355" height="58" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0os3moe_di" bpmnElement="Event_07ol7ch">
<dc:Bounds x="932" y="352" width="36" height="36" />
<dc:Bounds x="1322" y="352" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_1ow8whd_di" bpmnElement="Flow_1ow8whd">
<di:waypoint x="438" y="410" />
<di:waypoint x="470" y="410" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0qfq760_di" bpmnElement="Flow_0qfq760">
<di:waypoint x="570" y="410" />
<di:waypoint x="605" y="410" />
<di:waypoint x="495" y="410" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1nqz9ya_di" bpmnElement="Flow_1nqz9ya">
<di:waypoint x="1300" y="410" />
<di:waypoint x="1340" y="410" />
<di:waypoint x="1690" y="410" />
<di:waypoint x="1760" y="410" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1kxc9t0_di" bpmnElement="Flow_1kxc9t0">
<di:waypoint x="1440" y="410" />
<di:waypoint x="1480" y="410" />
<di:waypoint x="1860" y="410" />
<di:waypoint x="1940" y="410" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0tmasvl_di" bpmnElement="Flow_0tmasvl">
<di:waypoint x="630" y="435" />
<di:waypoint x="630" y="520" />
<di:waypoint x="1740" y="520" />
<di:waypoint x="1740" y="435" />
<di:waypoint x="520" y="435" />
<di:waypoint x="520" y="560" />
<di:waypoint x="610" y="560" />
<bpmndi:BPMNLabel>
<dc:Bounds x="648" y="503" width="82" height="14" />
<dc:Bounds x="525" y="563" width="50" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1cnt5hf_di" bpmnElement="Flow_1cnt5hf">
<di:waypoint x="980" y="410" />
<di:waypoint x="1045" y="410" />
<di:waypoint x="1370" y="410" />
<di:waypoint x="1435" y="410" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1nuku1o_di" bpmnElement="Flow_1nuku1o">
<di:waypoint x="1580" y="410" />
<di:waypoint x="1622" y="410" />
<di:waypoint x="2040" y="410" />
<di:waypoint x="2112" y="410" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0gcsmj7_di" bpmnElement="Flow_0gcsmj7">
<di:waypoint x="1658" y="410" />
<di:waypoint x="1715" y="410" />
<di:waypoint x="2148" y="410" />
<di:waypoint x="2220" y="410" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1rngywr_di" bpmnElement="Flow_1rngywr">
<di:waypoint x="655" y="410" />
<di:waypoint x="720" y="410" />
<di:waypoint x="545" y="410" />
<di:waypoint x="610" y="410" />
<bpmndi:BPMNLabel>
<dc:Bounds x="666" y="413" width="34" height="14" />
<dc:Bounds x="542" y="423" width="34" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0npv638_di" bpmnElement="Flow_0npv638">
<di:waypoint x="1765" y="410" />
<di:waypoint x="1810" y="410" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1ju13h8_di" bpmnElement="Flow_1ju13h8">
<di:waypoint x="1910" y="410" />
<di:waypoint x="1952" y="410" />
<di:waypoint x="2320" y="410" />
<di:waypoint x="2362" y="410" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1xdj53u_di" bpmnElement="Flow_1xdj53u">
<di:waypoint x="820" y="410" />
<di:waypoint x="880" y="410" />
<di:waypoint x="1180" y="410" />
<di:waypoint x="1270" y="410" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_065a4cq_di" bpmnElement="Flow_065a4cq">
<di:waypoint x="1095" y="410" />
<di:waypoint x="1200" y="410" />
<di:waypoint x="1485" y="410" />
<di:waypoint x="1590" y="410" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1101" y="426" width="78" height="27" />
<dc:Bounds x="1491" y="426" width="78" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0mtnk56_di" bpmnElement="Flow_0mtnk56">
<di:waypoint x="1070" y="385" />
<di:waypoint x="1070" y="278" />
<di:waypoint x="1460" y="385" />
<di:waypoint x="1460" y="278" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1081" y="296" width="78" height="27" />
<dc:Bounds x="1471" y="296" width="78" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0ny162r_di" bpmnElement="Flow_0ny162r">
<di:waypoint x="950" y="352" />
<di:waypoint x="950" y="278" />
<di:waypoint x="1340" y="352" />
<di:waypoint x="1340" y="278" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0x3dixj_di" bpmnElement="Flow_0x3dixj">
<di:waypoint x="835" y="410" />
<di:waypoint x="900" y="410" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_19zzqmc_di" bpmnElement="Flow_19zzqmc">
<di:waypoint x="710" y="560" />
<di:waypoint x="810" y="560" />
<di:waypoint x="810" y="435" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1igjy4m_di" bpmnElement="Flow_1igjy4m">
<di:waypoint x="710" y="410" />
<di:waypoint x="785" y="410" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1u10qvz_di" bpmnElement="Flow_1u10qvz">
<di:waypoint x="1000" y="410" />
<di:waypoint x="1080" y="410" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>

@ -44,7 +44,7 @@ switch(smardigoManagementAction) {
}
def filename = 'xvars-' + smardigoManagementAction + '-' + execution.getProcessInstanceId() + '.yml'
def ansibleCommand= 'ansible-playbook ' + smardigoManagementAction + '.yml --vault-password-file ~/vault-pass-' + envStage + ' -e "@' + filename + '"'
def ansibleCommand= 'ansible-playbook ' + currentSmardigoManagementAction + '.yml --vault-password-file ~/vault-pass-' + envStage + ' -e "@' + filename + '"'
def ansibleVariables= 'cat &lt;&lt;EOT &gt; ' + filename + '\n'
ansibleVariables+= '---\n'

@ -2,7 +2,7 @@
def parameters = [:]
parameters["default"] = "'1'"
def defaultFeatures = datasources.query("connect-features").processScope(contextScopeId, contextScopeTag).parameters(parameters).list();
def defaultFeatures = datasources.query("connect-features").scope(contextScopeId, contextScopeTag).parameters(parameters).list();
def features = []
defaultFeatures.each { val -> features+= val.key }

Loading…
Cancel
Save