{{#if (and (eq entityAction.dEAction.actionType 'DELOGIC') (entityAction.isEnableBackend) (entityAction.pSDELogic.isEnableBackend))}}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:g="http://www.jboss.org/drools/flow/gpd" xmlns:tns="http://www.jboss.org/drools" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" expressionLanguage="http://www.mvel.org/2.0" id="Definition" name="" targetNamespace="http://www.jboss.org/drools" typeLanguage="http://www.java.com/javaTypes">
    <process id="{{packageName}}.core.extensions.service.logic.execute" isClosed="false" isExecutable="true" name="{{entityAction.entity.module}}_{{lowerCase entityAction.entity.module}}_{{lowerCase entityAction.codeName}}.execLogic" processType="Private" tns:packageName="{{packageName}}.core.extensions.service.logic.execute">
        <extensionElements>
            <tns:import name="java.util.Map"/>
            <tns:import name="org.springframework.util.StringUtils"/>
            <tns:import name="cn.ibizlab.util.helper.RuleUtils"/>
        </extensionElements>

        <startEvent id="begin" isInterrupting="true"/>

        <endEvent id="prepareparam1_end" name="end"/>

        <callActivity activiti:exclusive="true" calledElement="{{packageName}}.core.{{lowerCase entityAction.entity.module}}service.logic.{{lowerCase entityAction.entity.codeName}}{{lowerCase entityAction.pSDELogic.codeName}}" id="{{entityAction.pSDELogic.codeName}}" name="{{entityAction.entity.codeName}}/{{entityAction.pSDELogic.codeName}}RuleFlow.bpmn"/>

        <sequenceFlow id="begin_{{entityAction.pSDELogic.codeName}}" sourceRef="begin" targetRef="{{entityAction.pSDELogic.codeName}}"/>

        <sequenceFlow id="{{entityAction.pSDELogic.codeName}}_prepareparam1_end" sourceRef="{{entityAction.pSDELogic.codeName}}" targetRef="prepareparam1_end"/>

    </process>
</definitions>
{{/if}}