2 * ============LICENSE_START=======================================================
\r
4 * ================================================================================
\r
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
\r
6 * ================================================================================
\r
7 * Licensed under the Apache License, Version 2.0 (the "License");
\r
8 * you may not use this file except in compliance with the License.
\r
9 * You may obtain a copy of the License at
\r
11 * http://www.apache.org/licenses/LICENSE-2.0
\r
13 * Unless required by applicable law or agreed to in writing, software
\r
14 * distributed under the License is distributed on an "AS IS" BASIS,
\r
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
16 * See the License for the specific language governing permissions and
\r
17 * limitations under the License.
\r
18 * ============LICENSE_END=========================================================
\r
20 package org.openecomp.mso.bpmn.infrastructure.scripts;
\r
22 import static org.apache.commons.lang3.StringUtils.*;
23 import groovy.xml.XmlUtil
26 import org.openecomp.mso.bpmn.core.json.JsonUtils
\r
27 import org.openecomp.mso.bpmn.common.scripts.AaiUtil
\r
28 import org.openecomp.mso.bpmn.common.scripts.AbstractServiceTaskProcessor
\r
29 import org.openecomp.mso.bpmn.common.scripts.ExceptionUtil
\r
30 import org.openecomp.mso.bpmn.common.scripts.SDNCAdapterUtils
\r
31 import org.openecomp.mso.bpmn.common.scripts.VidUtils
\r
32 import org.openecomp.mso.bpmn.core.RollbackData
\r
33 import org.openecomp.mso.bpmn.core.WorkflowException
\r
34 import org.openecomp.mso.rest.APIResponse;
\r
35 import org.openecomp.mso.rest.RESTClient
\r
36 import org.openecomp.mso.rest.RESTConfig
\r
38 import java.util.UUID;
40 import org.camunda.bpm.engine.delegate.BpmnError
41 import org.camunda.bpm.engine.runtime.Execution
42 import org.json.JSONObject;
43 import org.apache.commons.lang3.*
44 import org.apache.commons.codec.binary.Base64;
45 import org.springframework.web.util.UriUtils;
48 * This groovy class supports the <class>DoCreateServiceInstance.bpmn</class> process.
51 * @param - msoRequestId
52 * @param - globalSubscriberId
53 * @param - subscriptionServiceType
54 * @param - serviceInstanceId
55 * @param - serviceInstanceName - O
56 * @param - serviceModelInfo
57 * @param - productFamilyId
58 * @param - disableRollback
59 * @param - failExists - TODO
60 * @param - serviceInputParams - Deferred/TODO
61 * @param - sdncVersion ("1610")
64 * @param - rollbackData (localRB->null)
65 * @param - rolledBack (no localRB->null, localRB F->false, localRB S->true)
66 * @param - WorkflowException
67 * @param - serviceInstanceName - (GET from AAI if null in input)
70 public class DoCreateServiceInstance extends AbstractServiceTaskProcessor {
72 String Prefix="DCRESI_"
73 ExceptionUtil exceptionUtil = new ExceptionUtil()
74 JsonUtils jsonUtil = new JsonUtils()
75 VidUtils vidUtils = new VidUtils()
77 public void preProcessRequest (Execution execution) {
78 def isDebugEnabled = execution.getVariable("isDebugLogEnabled")
80 utils.log("DEBUG"," ***** preProcessRequest *****", isDebugEnabled)
83 String requestId = execution.getVariable("msoRequestId")
84 execution.setVariable("prefix", Prefix)
87 //requestDetails.subscriberInfo. for AAI GET & PUT & SDNC assignToplology
88 String globalSubscriberId = execution.getVariable("globalSubscriberId") //globalCustomerId
90 //requestDetails.requestInfo. for AAI GET/PUT serviceInstanceData & SDNC assignToplology
91 String serviceInstanceName = execution.getVariable("serviceInstanceName")
92 //Generated in parent for AAI PUT
93 String serviceInstanceId = execution.getVariable("serviceInstanceId")
95 //requestDetails.modelInfo. for AAI PUT servieInstanceData & SDNC assignTopology
96 String serviceModelInfo = execution.getVariable("serviceModelInfo")
98 //requestDetails.requestParameters. for AAI PUT & SDNC assignTopology
99 String subscriptionServiceType = execution.getVariable("subscriptionServiceType")
101 //requestDetails.requestParameters. for SDNC assignTopology
102 String productFamilyId = execution.getVariable("productFamilyId") //AAI productFamilyId
104 if (isBlank(globalSubscriberId)) {
105 msg = "Input globalSubscriberId is null"
106 utils.log("DEBUG", msg, isDebugEnabled)
107 exceptionUtil.buildAndThrowWorkflowException(execution, 500, msg)
109 if (isBlank(serviceInstanceId)){
110 msg = "Input serviceInstanceId is null"
111 utils.log("DEBUG", msg, isDebugEnabled)
112 exceptionUtil.buildAndThrowWorkflowException(execution, 500, msg)
114 if (isBlank(serviceModelInfo)) {
115 msg = "Input serviceModelInfo is null"
116 utils.log("DEBUG", msg, isDebugEnabled)
117 exceptionUtil.buildAndThrowWorkflowException(execution, 500, msg)
119 if (isBlank(subscriptionServiceType)) {
120 msg = "Input subscriptionServiceType is null"
121 utils.log("DEBUG", msg, isDebugEnabled)
122 exceptionUtil.buildAndThrowWorkflowException(execution, 500, msg)
124 if (productFamilyId == null) {
125 execution.setVariable("productFamilyId", "")
128 String sdncCallbackUrl = execution.getVariable('URN_mso_workflow_sdncadapter_callback')
129 if (isBlank(sdncCallbackUrl)) {
130 msg = "URN_mso_workflow_sdncadapter_callback is null"
131 utils.log("DEBUG", msg, isDebugEnabled)
132 exceptionUtil.buildAndThrowWorkflowException(execution, 500, msg)
134 execution.setVariable("sdncCallbackUrl", sdncCallbackUrl)
135 utils.log("DEBUG","SDNC Callback URL: " + sdncCallbackUrl, isDebugEnabled)
137 String personaModelId = jsonUtil.getJsonValue(serviceModelInfo, "modelInvariantId")
138 String personaModelVersion = jsonUtil.getJsonValue(serviceModelInfo, "modelVersion")
140 if (personaModelId == null) {
143 if (personaModelVersion == null) {
144 personaModelVersion = ""
146 if (serviceInstanceName == null) {
147 execution.setVariable("serviceInstanceName", "")
148 serviceInstanceName = ""
152 AaiUtil aaiUriUtil = new AaiUtil(this)
153 String aai_uri = aaiUriUtil.getBusinessCustomerUri(execution)
154 String namespace = aaiUriUtil.getNamespaceFromUri(aai_uri)
155 String serviceInstanceData =
156 """<service-instance xmlns=\"${namespace}\">
157 <service-instance-name>${serviceInstanceName}</service-instance-name>
158 <orchestration-status>active</orchestration-status>
159 <persona-model-id>${personaModelId}</persona-model-id>
160 <persona-model-version>${personaModelVersion}</persona-model-version>
161 </service-instance>""".trim()
163 execution.setVariable("serviceInstanceData", serviceInstanceData)
164 utils.logAudit(serviceInstanceData)
165 utils.log("DEBUG", " 'payload' to create Service Instance in AAI - " + "\n" + serviceInstanceData, isDebugEnabled)
167 } catch (BpmnError e) {
169 } catch (Exception ex){
170 msg = "Exception in preProcessRequest " + ex.getMessage()
171 utils.log("DEBUG", msg, isDebugEnabled)
172 exceptionUtil.buildAndThrowWorkflowException(execution, 7000, msg)
174 utils.log("DEBUG"," ***** Exit preProcessRequest *****", isDebugEnabled)
177 //TODO: Will be able to replace with call to GenericGetService
178 public void getAAICustomerById (Execution execution) {
179 // https://{aaiEP}/aai/v8/business/customers/customer/{globalCustomerId}
180 def isDebugEnabled = execution.getVariable("isDebugLogEnabled")
184 String globalCustomerId = execution.getVariable("globalSubscriberId") //VID to AAI name map
185 utils.log("DEBUG"," ***** getAAICustomerById ***** globalCustomerId:" + globalCustomerId, isDebugEnabled)
187 String aai_endpoint = execution.getVariable("URN_aai_endpoint")
188 AaiUtil aaiUriUtil = new AaiUtil(this)
189 String aai_uri = aaiUriUtil.getBusinessCustomerUri(execution)
190 if (isBlank(aai_endpoint) || isBlank(aai_uri))
192 msg = "AAI URL is invalid. Endpoint:" + aai_endpoint + aai_uri
193 utils.log("DEBUG", msg, isDebugEnabled)
194 exceptionUtil.buildAndThrowWorkflowException(execution, 500, msg)
196 String getAAICustomerUrl = "${aai_endpoint}${aai_uri}/" + UriUtils.encode(globalCustomerId,"UTF-8")
198 utils.logAudit(getAAICustomerUrl)
199 utils.log("DEBUG", "getAAICustomerById Url:" + getAAICustomerUrl, isDebugEnabled)
200 APIResponse response = aaiUriUtil.executeAAIGetCall(execution, getAAICustomerUrl)
201 String returnCode = response.getStatusCode()
202 String aaiResponseAsString = response.getResponseBodyAsString()
204 msg = "getAAICustomerById ResponseCode:" + returnCode + " ResponseString:" + aaiResponseAsString
205 utils.log("DEBUG",msg, isDebugEnabled)
208 if (returnCode=='200') {
209 // Customer found by ID. FLow to proceed.
210 utils.log("DEBUG",msg, isDebugEnabled)
213 //we might verify that service-subscription with matching name exists
214 //and throw error if not. If not checked, we will get exception in subsequent step on Create call
215 //in 1610 we assume both customer & service subscription were pre-created
218 if (returnCode=='404') {
219 msg = "GlobalCustomerId:" + globalCustomerId + " not found (404) in AAI"
220 utils.log("DEBUG", msg, isDebugEnabled)
221 exceptionUtil.buildAndThrowWorkflowException(execution, 2500, msg)
224 if (aaiResponseAsString.contains("RESTFault")) {
225 utils.log("ERROR", aaiResponseAsString)
226 WorkflowException workflowException = exceptionUtil.MapAAIExceptionToWorkflowException(aaiResponseAsString, execution)
227 execution.setVariable("WorkflowException", workflowException)
228 throw new BpmnError("MSOWorkflowException")
232 msg = "Error in getAAICustomerById ResponseCode:" + returnCode
233 utils.log("DEBUG", msg, isDebugEnabled)
234 exceptionUtil.buildAndThrowWorkflowException(execution, 2500, msg)
239 } catch (BpmnError e) {
241 } catch (Exception ex) {
242 msg = "Exception in getAAICustomerById. " + ex.getMessage()
243 utils.log("DEBUG", msg, isDebugEnabled)
244 exceptionUtil.buildAndThrowWorkflowException(execution, 7000, msg)
246 utils.log("DEBUG"," *****Exit getAAICustomerById *****", isDebugEnabled)
250 public void postProcessAAIGET(Execution execution) {
251 def isDebugEnabled=execution.getVariable("isDebugLogEnabled")
252 utils.log("DEBUG"," ***** postProcessAAIGET ***** ", isDebugEnabled)
256 String serviceInstanceName = execution.getVariable("serviceInstanceName")
257 boolean succInAAI = execution.getVariable("GENGS_SuccessIndicator")
258 if(succInAAI != true){
259 utils.log("DEBUG","Error getting Service-instance from AAI", + serviceInstanceName, isDebugEnabled)
260 WorkflowException workflowException = execution.getVariable("WorkflowException")
261 utils.logAudit("workflowException: " + workflowException)
262 if(workflowException != null){
263 exceptionUtil.buildAndThrowWorkflowException(execution, workflowException.getErrorCode(), workflowException.getErrorMessage())
267 msg = "Failure in postProcessAAIGET GENGS_SuccessIndicator:" + succInAAI
268 utils.log("DEBUG", msg, isDebugEnabled)
269 exceptionUtil.buildAndThrowWorkflowException(execution, 2500, msg)
274 boolean foundInAAI = execution.getVariable("GENGS_FoundIndicator")
275 if(foundInAAI == true){
276 utils.log("DEBUG","Found Service-instance in AAI", isDebugEnabled)
277 msg = "ServiceInstance already exists in AAI:" + serviceInstanceName
278 utils.log("DEBUG", msg, isDebugEnabled)
279 exceptionUtil.buildAndThrowWorkflowException(execution, 2500, msg)
282 } catch (BpmnError e) {
284 } catch (Exception ex) {
285 msg = "Exception in DoCreateServiceInstance.postProcessAAIGET. " + ex.getMessage()
286 utils.log("DEBUG", msg, isDebugEnabled)
287 exceptionUtil.buildAndThrowWorkflowException(execution, 7000, msg)
289 utils.log("DEBUG"," *** Exit postProcessAAIGET *** ", isDebugEnabled)
292 public void postProcessAAIPUT(Execution execution) {
293 def isDebugEnabled=execution.getVariable("isDebugLogEnabled")
294 utils.log("DEBUG"," ***** postProcessAAIPUT ***** ", isDebugEnabled)
297 String serviceInstanceId = execution.getVariable("serviceInstanceId")
298 boolean succInAAI = execution.getVariable("GENPS_SuccessIndicator")
299 if(succInAAI != true){
300 utils.log("DEBUG","Error putting Service-instance in AAI", + serviceInstanceId, isDebugEnabled)
301 WorkflowException workflowException = execution.getVariable("WorkflowException")
302 utils.logAudit("workflowException: " + workflowException)
303 if(workflowException != null){
304 exceptionUtil.buildAndThrowWorkflowException(execution, workflowException.getErrorCode(), workflowException.getErrorMessage())
309 //start rollback set up
310 RollbackData rollbackData = new RollbackData()
311 def disableRollback = execution.getVariable("disableRollback")
312 rollbackData.put("SERVICEINSTANCE", "disableRollback", disableRollback.toString())
313 rollbackData.put("SERVICEINSTANCE", "rollbackAAI", "true")
314 rollbackData.put("SERVICEINSTANCE", "serviceInstanceId", serviceInstanceId)
315 rollbackData.put("SERVICEINSTANCE", "subscriptionServiceType", execution.getVariable("subscriptionServiceType"))
316 rollbackData.put("SERVICEINSTANCE", "globalSubscriberId", execution.getVariable("globalSubscriberId"))
317 execution.setVariable("rollbackData", rollbackData)
320 } catch (BpmnError e) {
322 } catch (Exception ex) {
323 msg = "Exception in DoCreateServiceInstance.postProcessAAIDEL. " + ex.getMessage()
324 utils.log("DEBUG", msg, isDebugEnabled)
325 exceptionUtil.buildAndThrowWorkflowException(execution, 7000, msg)
327 utils.log("DEBUG"," *** Exit postProcessAAIPUT *** ", isDebugEnabled)
330 public void preProcessSDNCAssignRequest(Execution execution) {
331 def isDebugEnabled = execution.getVariable("isDebugLogEnabled")
333 utils.log("DEBUG"," ***** preProcessSDNCAssignRequest *****", isDebugEnabled)
336 def serviceInstanceId = execution.getVariable("serviceInstanceId")
337 def serviceInstanceName = execution.getVariable("serviceInstanceName")
338 def callbackURL = execution.getVariable("sdncCallbackUrl")
339 def requestId = execution.getVariable("msoRequestId")
340 def serviceId = execution.getVariable("productFamilyId")
341 def subscriptionServiceType = execution.getVariable("subscriptionServiceType")
342 def globalSubscriberId = execution.getVariable("globalSubscriberId") //globalCustomerId
344 String serviceModelInfo = execution.getVariable("serviceModelInfo")
345 def modelInvariantId = jsonUtil.getJsonValue(serviceModelInfo, "modelInvariantId")
346 def modelVersion = jsonUtil.getJsonValue(serviceModelInfo, "modelVersion")
347 def modelUUId = jsonUtil.getJsonValue(serviceModelInfo, "modelVersionId")
348 def modelName = jsonUtil.getJsonValue(serviceModelInfo, "modelName")
349 def sdncRequestId = UUID.randomUUID().toString()
351 if (modelInvariantId == null) {
352 modelInvariantId = ""
354 if (modelVersion == null) {
357 if (modelUUId == null) {
360 if (modelName == null) {
364 String sdncAssignRequest =
365 """<sdncadapterworkflow:SDNCAdapterWorkflowRequest xmlns:ns5="http://org.openecomp/mso/request/types/v1"
\r
366 xmlns:sdncadapterworkflow="http://org.openecomp/mso/workflow/schema/v1"
\r
367 xmlns:sdncadapter="http://org.openecomp/workflow/sdnc/adapter/schema/v1">
\r
368 <sdncadapter:RequestHeader>
369 <sdncadapter:RequestId>${sdncRequestId}</sdncadapter:RequestId>
370 <sdncadapter:SvcInstanceId>${serviceInstanceId}</sdncadapter:SvcInstanceId>
371 <sdncadapter:SvcAction>assign</sdncadapter:SvcAction>
372 <sdncadapter:SvcOperation>service-topology-operation</sdncadapter:SvcOperation>
373 <sdncadapter:CallbackUrl>${callbackURL}</sdncadapter:CallbackUrl>
374 </sdncadapter:RequestHeader>
375 <sdncadapterworkflow:SDNCRequestData>
376 <request-information>
377 <request-id>${requestId}</request-id>
382 <request-action>CreateServiceInstance</request-action>
383 </request-information>
384 <service-information>
385 <service-id>${serviceId}</service-id>
386 <subscription-service-type>${subscriptionServiceType}</subscription-service-type>
387 <ecomp-model-information>
388 <model-invariant-uuid>${modelInvariantId}</model-invariant-uuid>
389 <model-uuid>${modelUUId}</model-uuid>
390 <model-version>${modelVersion}</model-version>
391 <model-name>${modelName}</model-name>
392 </ecomp-model-information>
393 <service-instance-id>${serviceInstanceId}</service-instance-id>
395 <global-customer-id>${globalSubscriberId}</global-customer-id>
396 </service-information>
397 <service-request-input>
398 <service-instance-name>${serviceInstanceName}</service-instance-name>
399 </service-request-input>
400 </sdncadapterworkflow:SDNCRequestData>
401 </sdncadapterworkflow:SDNCAdapterWorkflowRequest>"""
403 utils.log("DEBUG","sdncAssignRequest:\n" + sdncAssignRequest, isDebugEnabled)
404 sdncAssignRequest = utils.formatXml(sdncAssignRequest)
405 execution.setVariable("sdncAssignRequest", sdncAssignRequest)
406 utils.logAudit("sdncAssignRequest: " + sdncAssignRequest)
408 def sdncRequestId2 = UUID.randomUUID().toString()
409 String sdncRollbackRequest = sdncAssignRequest.replace(">assign<", ">delete<").replace(">CreateServiceInstance<", ">DeleteServiceInstance<").replace(">${sdncRequestId}<", ">${sdncRequestId2}<")
410 def rollbackData = execution.getVariable("rollbackData")
411 rollbackData.put("SERVICEINSTANCE", "sdncRollbackRequest", sdncRollbackRequest)
412 execution.setVariable("rollbackData", rollbackData)
414 utils.log("DEBUG","sdncRollbackRequest:\n" + sdncRollbackRequest, isDebugEnabled)
415 utils.log("DEBUG","rollbackData:\n" + rollbackData.toString(), isDebugEnabled)
417 } catch (BpmnError e) {
419 } catch(Exception ex) {
420 msg = "Exception in preProcessSDNCAssignRequest. " + ex.getMessage()
421 utils.log("DEBUG", msg, isDebugEnabled)
422 exceptionUtil.buildAndThrowWorkflowException(execution, 7000, msg)
424 utils.log("DEBUG"," *****Exit preProcessSDNCAssignRequest *****", isDebugEnabled)
427 public void postProcessSDNCAssign (Execution execution) {
428 def isDebugEnabled=execution.getVariable("isDebugLogEnabled")
429 utils.log("DEBUG"," ***** postProcessSDNCAssign ***** ", isDebugEnabled)
431 WorkflowException workflowException = execution.getVariable("WorkflowException")
432 utils.logAudit("workflowException: " + workflowException)
434 boolean successIndicator = execution.getVariable("SDNCA_SuccessIndicator")
436 String response = execution.getVariable("sdncAdapterResponse")
437 utils.logAudit("SDNCResponse: " + response)
439 SDNCAdapterUtils sdncAdapterUtils = new SDNCAdapterUtils(this)
440 sdncAdapterUtils.validateSDNCResponse(execution, response, workflowException, successIndicator)
442 if(execution.getVariable(Prefix + 'sdncResponseSuccess') == true){
443 utils.log("DEBUG","Good response from SDNC Adapter for service-instance topology assign: \n" + response, isDebugEnabled)
445 def rollbackData = execution.getVariable("rollbackData")
446 rollbackData.put("SERVICEINSTANCE", "rollbackSDNC", "true")
447 execution.setVariable("rollbackData", rollbackData)
450 utils.log("DEBUG","Bad Response from SDNC Adapter for service-instance assign", isDebugEnabled)
451 throw new BpmnError("MSOWorkflowException")
454 } catch (BpmnError e) {
456 } catch(Exception ex) {
457 msg = "Exception in postProcessSDNCAssign. " + ex.getMessage()
458 utils.log("DEBUG", msg, isDebugEnabled)
459 exceptionUtil.buildAndThrowWorkflowException(execution, 7000, msg)
461 utils.log("DEBUG"," *** Exit postProcessSDNCAssign *** ", isDebugEnabled)
464 public void postProcessAAIGET2(Execution execution) {
465 def isDebugEnabled=execution.getVariable("isDebugLogEnabled")
466 utils.log("DEBUG"," ***** postProcessAAIGET2 ***** ", isDebugEnabled)
470 String serviceInstanceName = execution.getVariable("serviceInstanceName")
471 boolean succInAAI = execution.getVariable("GENGS_SuccessIndicator")
472 if(succInAAI != true){
473 utils.log("DEBUG","Error getting Service-instance from AAI in postProcessAAIGET2", + serviceInstanceName, isDebugEnabled)
474 WorkflowException workflowException = execution.getVariable("WorkflowException")
475 utils.logAudit("workflowException: " + workflowException)
476 if(workflowException != null){
477 exceptionUtil.buildAndThrowWorkflowException(execution, workflowException.getErrorCode(), workflowException.getErrorMessage())
481 msg = "Failure in postProcessAAIGET2 GENGS_SuccessIndicator:" + succInAAI
482 utils.log("DEBUG", msg, isDebugEnabled)
483 exceptionUtil.buildAndThrowWorkflowException(execution, 2500, msg)
488 boolean foundInAAI = execution.getVariable("GENGS_FoundIndicator")
489 if(foundInAAI == true){
490 String aaiService = execution.getVariable("GENGS_service")
491 if (!isBlank(aaiService) && (utils.nodeExists(aaiService, "service-instance-name"))) {
492 execution.setVariable("serviceInstanceName", utils.getNodeText1(aaiService, "service-instance-name"))
493 utils.log("DEBUG","Found Service-instance in AAI.serviceInstanceName:" + execution.getVariable("serviceInstanceName"), isDebugEnabled)
497 } catch (BpmnError e) {
499 } catch (Exception ex) {
500 msg = "Exception in DoCreateServiceInstance.postProcessAAIGET2 " + ex.getMessage()
501 utils.log("DEBUG", msg, isDebugEnabled)
502 exceptionUtil.buildAndThrowWorkflowException(execution, 7000, msg)
504 utils.log("DEBUG"," *** Exit postProcessAAIGET2 *** ", isDebugEnabled)
507 public void preProcessRollback (Execution execution) {
508 def isDebugEnabled=execution.getVariable("isDebugLogEnabled")
509 utils.log("DEBUG"," ***** preProcessRollback ***** ", isDebugEnabled)
512 Object workflowException = execution.getVariable("WorkflowException");
514 if (workflowException instanceof WorkflowException) {
515 utils.log("DEBUG", "Prev workflowException: " + workflowException.getErrorMessage(), isDebugEnabled)
516 execution.setVariable("prevWorkflowException", workflowException);
517 //execution.setVariable("WorkflowException", null);
519 } catch (BpmnError e) {
520 utils.log("DEBUG", "BPMN Error during preProcessRollback", isDebugEnabled)
521 } catch(Exception ex) {
522 String msg = "Exception in preProcessRollback. " + ex.getMessage()
523 utils.log("DEBUG", msg, isDebugEnabled)
525 utils.log("DEBUG"," *** Exit preProcessRollback *** ", isDebugEnabled)
528 public void postProcessRollback (Execution execution) {
529 def isDebugEnabled=execution.getVariable("isDebugLogEnabled")
530 utils.log("DEBUG"," ***** postProcessRollback ***** ", isDebugEnabled)
533 Object workflowException = execution.getVariable("prevWorkflowException");
534 if (workflowException instanceof WorkflowException) {
535 utils.log("DEBUG", "Setting prevException to WorkflowException: ", isDebugEnabled)
536 execution.setVariable("WorkflowException", workflowException);
538 execution.setVariable("rollbackData", null)
539 } catch (BpmnError b) {
540 utils.log("DEBUG", "BPMN Error during postProcessRollback", isDebugEnabled)
542 } catch(Exception ex) {
543 msg = "Exception in postProcessRollback. " + ex.getMessage()
544 utils.log("DEBUG", msg, isDebugEnabled)
546 utils.log("DEBUG"," *** Exit postProcessRollback *** ", isDebugEnabled)