diff --git a/src/main/resources/liteflow/flow1.el.xml b/src/main/resources/liteflow/flow1.el.xml index e62cfba..215083f 100644 --- a/src/main/resources/liteflow/flow1.el.xml +++ b/src/main/resources/liteflow/flow1.el.xml @@ -56,58 +56,58 @@ - - - - - - - - - - - - - - - --> + + + + + + + + + + + + + + + + + + + + + + + + + + + + - def costCenter01Name = "仓干配物流部利润中心" - costCenterContext.setName(costCenter01Name) + + - costCenterContext.setGenerateCode(costCenter01Code + costCenter01Name) - ]]> - - - + + + + + + - def costCenter02Name = "商品车物流部利润中心" - costCenterContext.setName(costCenter02Name) + + - costCenterContext.setGenerateCode(costCenter02Code + costCenter02Name) - ]]> - - - - - + + + + + + + + + + diff --git a/src/main/resources/测试参数.txt b/src/main/resources/测试参数.txt new file mode 100644 index 0000000..11331b6 --- /dev/null +++ b/src/main/resources/测试参数.txt @@ -0,0 +1,181 @@ +/dynamicScript/createCostCenterIfNode +{ + "scriptId": "a3", + "scriptName": "costCenter01Cmp", + "roles": [ + { + "logicOperators": "$or", + "children": [ + { + "logicOperators": "$and", + "matches": [ + { + "conditionalOperators": "$contains", + "matchingValue": "sectionClassification", + "matchingContent": "sectionClassificationList" + }, + { + "conditionalOperators": "$contains", + "matchingValue": "businessType", + "matchingContent": "businessTypeList" + }, + { + "conditionalOperators": "$contains", + "matchingValue": "salesman", + "matchingContent": "salesmanList" + }, + { + "conditionalOperators": "$contains", + "matchingValue": "businessCategory", + "matchingContent": "businessCategoryList" + } + ] + } + ] + } + ] +} + +/dynamicScript/createCostCenterNode +{ + "scriptId": "a4", + "scriptName": "costCenter02Cmp", + "roles": [ + { + "logicOperators": "$or", + "children": [ + { + "logicOperators": "$or", + "children": [ + { + "logicOperators": "$and", + "matches": [ + { + "conditionalOperators": "$contains", + "matchingValue": "sectionClassification", + "matchingContent": "sectionClassificationList" + }, + { + "conditionalOperators": "$contains", + "matchingValue": "salesman", + "matchingContent": "salesmanList" + } + ] + } + ] + } + ] + }, + { + "logicOperators": "$or", + "matches": [ + { + "conditionalOperators": "$contains", + "matchingValue": "businessType", + "matchingContent": "businessTypeList" + } + ] + } + ] +} + +/dynamicScript/createProfitCenterIfNode +{ + "scriptId": "a1", + "scriptName": "profitCenter01Cmp", + "roles": [ + { + "logicOperators": "$or", + "children": [ + { + "logicOperators": "$and", + "matches": [ + { + "conditionalOperators": "$contains", + "matchingValue": "businessType", + "matchingContent": "businessTypeList" + }, + { + "conditionalOperators": "$contains", + "matchingValue": "salesman", + "matchingContent": "salesmanList" + }, + { + "conditionalOperators": "$contains", + "matchingValue": "businessCategory", + "matchingContent": "businessCategoryList" + } + ] + } + ] + }, + { + "logicOperators": "$or", + "children": [ + { + "logicOperators": "$and", + "matches": [ + { + "conditionalOperators": "$contains", + "matchingValue": "sectionClassification", + "matchingContent": "sectionClassificationList" + }, + { + "conditionalOperators": "$contains", + "matchingValue": "businessType", + "matchingContent": "businessTypeList" + } + ] + } + ] + } + ] +} + +/dynamicScript/createProfitCenterIfNode +{ + "scriptId": "a2", + "scriptName": "profitCenter02Cmp", + "roles": [ + { + "logicOperators": "$or", + "children": [ + { + "logicOperators": "$and", + "matches": [ + { + "conditionalOperators": "$contains", + "matchingValue": "businessType", + "matchingContent": "businessTypeList" + }, + { + "conditionalOperators": "$contains", + "matchingValue": "salesman", + "matchingContent": "salesmanList" + } + ] + } + ] + }, + { + "logicOperators": "$or", + "children": [ + { + "logicOperators": "$and", + "matches": [ + { + "conditionalOperators": "$contains", + "matchingValue": "sectionClassification", + "matchingContent": "sectionClassificationList" + }, + { + "conditionalOperators": "$contains", + "matchingValue": "businessType", + "matchingContent": "businessTypeList" + } + ] + } + ] + } + ] +} \ No newline at end of file