xml和json互转的格式,结构

xml:

<?xml version="1.0" encoding="UTF-8" ?>
	<process xmlns="http://jbpm.org/4.4/jpdl" name="ggggggggggg">
		<start g="194,191,48,48" name="wwww">
			<transition to="aaa">
				<description type="advance">
					<workflow>
						<dealEvent>bpm_transition_class</dealEvent>
						<params>
							<data>
								<name>dealEvent</name>
								<value>测试3</value>
							</data>
						</params>
					</workflow>
					<other>
						<params>
							<data />
							<data />
							<data />
						</params>
					</other>
					<oryx_freeSetting>
						<data>
							<ruleId>0</ruleId>
						</data>
						<data>
							<ruleId>1</ruleId>
						</data>
						<data>
							<ruleId>2</ruleId>
						</data>
					</oryx_freeSetting>
				</description>
			</transition>
		</start>
		<task g="346,199,130,50" name="aaa">
			<description>
				<workflow>
					<params>
						<data>
							<name>noticeCheck</name>
							<value>Y</value>
						</data>
						<data>
							<name>emailCheck</name>
							<value>Y</value>
						</data>
						<data>
							<name>repeatCheck</name>
							<value>Y</value>
						</data>
						<data>
							<name>reminderCheck</name>
							<value>Y</value>
						</data>
						<data>
							<name>readOnlyCheck</name>
							<value>Y</value>
						</data>
						<data>
							<name>taskTime</name>
							<value>1</value>
						</data>
						<data>
							<name>timeUnits</name>
							<value>分钟</value>
						</data>
						<data>
							<name>outDeal</name>
							<value>邮件</value>
						</data>
						<data>
							<name>noticeFrequency</name>
							<value>1</value>
						</data>
						<data>
							<name>timeUnitsN</name>
							<value>分钟</value>
						</data>
						<data>
							<name>dealEvent</name>
							<value>join</value>
						</data>
						<data>
							<name>timeUnits_dom</name>
							<value>分钟</value>
						</data>
						<data>
							<name>outDeal_dom</name>
							<value>邮件</value>
						</data>
						<data>
							<name>timeUnitsN_dom</name>
							<value>分钟</value>
						</data>
						<data>
							<name>dealEvent_dom</name>
							<value>分支聚合事件</value>
						</data>
					</params>
				</workflow>
				<assignment>
					<className>role</className>
					<params>
						<data>
							<name>isAllSelectedCheck</name>
							<value>Y</value>
						</data>
						<data>
							<name>isradioCheck</name>
							<value>Y</value>
						</data>
						<data>
							<name>checkChildOrgCheck</name>
							<value>N</value>
						</data>
						<data>
							<name>roleList</name>
							<value>NETWORK_MAINTENANCE_PERSONNEL#PURCHAS_ADMIN</value>
						</data>
						<data>
							<name>roleListValue</name>
							<value>网络维护人员(第三方)#采购经理</value>
						</data>
						<data>
							<name>searchOrgLevel_level</name>
							<value>0</value>
						</data>
						<data>
							<name>checkEveryOrgLevelCheck</name>
							<value>N</value>
						</data>
						<data>
							<name>orgList</name>
							<value>00240091000000000000#00240108000000000000</value>
						</data>
						<data>
							<name>orgListValue</name>
							<value>省公司数据部#省公司终端运营中心</value>
						</data>
					</params>
				</assignment>
				<other>
					<params>
						<data />
						<data>
							<ruleName>bpm_parent_kinds</ruleName>
							<ruleValue>aaa</ruleValue>
						</data>
						<data />
						<data />
					</params>
				</other>
				<oryx_freeSetting>
					<data>
						<ruleId>1</ruleId>
					</data>
					<data>
						<ruleId>2</ruleId>
						<parentSettingType>1测试-bpm_parent_kinds</parentSettingType>
						<ruleName>1测试-bpm_parent_kinds</ruleName>
						<ruleValue>aaa</ruleValue>
					</data>
					<data>
						<ruleId>3</ruleId>
					</data>
					<data>
						<ruleId>4</ruleId>
					</data>
				</oryx_freeSetting>
				<readerAssignment>
					<className>rule</className>
					<params>
						<data>
							<name>readerRequiredCheck</name>
							<value>Y</value>
						</data>
						<data>
							<name>isradioReadCheck</name>
							<value>Y</value>
						</data>
						<data>
							<name>checkChildOrgReadCheck</name>
							<value>N</value>
						</data>
						<data>
							<name>readerList</name>
							<value>xuxueTest自定义规则12</value>
						</data>
						<data>
							<name>readerListValue</name>
							<value>xuxueTestUserRule12</value>
						</data>
						<data>
							<name>roleIds</name>
							<value>xuxueTestUserRule12</value>
						</data>
						<data>
							<name>role_orgsIds</name>
						</data>
						<data>
							<name>isReadAccount</name>
						</data>
					</params>
					<assignmentR_dom>指派到规则</assignmentR_dom>
				</readerAssignment>
			</description>
			<transition to="wqer">
				<description type="basic">
					<oryx_expression> 是否二级子部门发起 字符 大于 是否二级子部门发起 and  是否二级子部门发起 字符 大于 是否二级子部门发起 and  是否二级子部门发起 字符 大于 是否二级子部门发起 and  是否二级子部门发起 字符 大于 是否二级子部门发起 </oryx_expression>
					<oryx_expressionValue>ysSecond CMP_CHAR gt '是否二级子部门发起' and ysSecond CMP_CHAR gt '是否二级子部门发起' and ysSecond CMP_CHAR gt '是否二级子部门发起' and ysSecond CMP_CHAR gt '是否二级子部门发起' </oryx_expressionValue>
					<oryx_description>#{ysSecond gt 是否二级子部门发起 and ysSecond gt 是否二级子部门发起 and ysSecond gt 是否二级子部门发起 and ysSecond gt 是否二级子部门发起 }</oryx_description>
					<com_condition>{'ysSecond':'S','ysSecond':'S','ysSecond':'S','ysSecond':'S'}</com_condition>
					<oryx_condition>
						<data>
							<ruleId>0</ruleId>
							<ruleCondition>and</ruleCondition>
							<ruleConditionH>and</ruleConditionH>
							<ruleDimension>是否二级子部门发起</ruleDimension>
							<ruleDimensionH>CMP_CHAR</ruleDimensionH>
							<ruleDimensionHS>字符</ruleDimensionHS>
							<ruleOperator>大于</ruleOperator>
							<ruleOperatorH>gt</ruleOperatorH>
							<ruleValues>是否二级子部门发起</ruleValues>
							<ruleDimensionWeiduKey>ysSecond</ruleDimensionWeiduKey>
						</data>
						<data>
							<ruleId>1</ruleId>
							<ruleCondition>and</ruleCondition>
							<ruleConditionH>and</ruleConditionH>
							<ruleDimension>是否二级子部门发起</ruleDimension>
							<ruleDimensionH>CMP_CHAR</ruleDimensionH>
							<ruleDimensionHS>字符</ruleDimensionHS>
							<ruleOperator>大于</ruleOperator>
							<ruleOperatorH>gt</ruleOperatorH>
							<ruleValues>是否二级子部门发起</ruleValues>
							<ruleDimensionWeiduKey>ysSecond</ruleDimensionWeiduKey>
						</data>
						<data>
							<ruleId>2</ruleId>
							<ruleCondition>and</ruleCondition>
							<ruleConditionH>and</ruleConditionH>
							<ruleDimension>是否二级子部门发起</ruleDimension>
							<ruleDimensionH>CMP_CHAR</ruleDimensionH>
							<ruleDimensionHS>字符</ruleDimensionHS>
							<ruleOperator>大于</ruleOperator>
							<ruleOperatorH>gt</ruleOperatorH>
							<ruleValues>是否二级子部门发起</ruleValues>
							<ruleDimensionWeiduKey>ysSecond</ruleDimensionWeiduKey>
						</data>
						<data>
							<ruleId>3</ruleId>
							<ruleCondition>and</ruleCondition>
							<ruleConditionH>and</ruleConditionH>
							<ruleDimension>是否二级子部门发起</ruleDimension>
							<ruleDimensionH>CMP_CHAR</ruleDimensionH>
							<ruleDimensionHS>字符</ruleDimensionHS>
							<ruleOperator>大于</ruleOperator>
							<ruleOperatorH>gt</ruleOperatorH>
							<ruleValues>是否二级子部门发起</ruleValues>
							<ruleDimensionWeiduKey>ysSecond</ruleDimensionWeiduKey>
						</data>
					</oryx_condition>
				</description>
			</transition>
		</task>
		<end g="595,214,48,48" name="wqer" />
	</process>
	

json:

{
  "process": {
    "-xmlns": "http://jbpm.org/4.4/jpdl",
    "-name": "ggggggggggg",
    "start": {
      "-g": "194,191,48,48",
      "-name": "wwww",
      "transition": {
        "-to": "aaa",
        "description": {
          "-type": "advance",
          "workflow": {
            "dealEvent": "bpm_transition_class",
            "params": {
              "data": {
                "name": "dealEvent",
                "value": "测试3"
              }
            }
          },
          "other": {
            "params": {
              "data": [
                {
                  
                },
                {
                  
                },
                {
                  
                }
              ]
            }
          },
          "oryx_freeSetting": {
            "data": [
              { "ruleId": "0" },
              { "ruleId": "1" },
              { "ruleId": "2" }
            ]
          }
        }
      }
    },
    "task": {
      "-g": "346,199,130,50",
      "-name": "aaa",
      "description": {
        "workflow": {
          "params": {
            "data": [
              {
                "name": "noticeCheck",
                "value": "Y"
              },
              {
                "name": "emailCheck",
                "value": "Y"
              },
              {
                "name": "repeatCheck",
                "value": "Y"
              },
              {
                "name": "reminderCheck",
                "value": "Y"
              },
              {
                "name": "readOnlyCheck",
                "value": "Y"
              },
              {
                "name": "taskTime",
                "value": "1"
              },
              {
                "name": "timeUnits",
                "value": "分钟"
              },
              {
                "name": "outDeal",
                "value": "邮件"
              },
              {
                "name": "noticeFrequency",
                "value": "1"
              },
              {
                "name": "timeUnitsN",
                "value": "分钟"
              },
              {
                "name": "dealEvent",
                "value": "join"
              },
              {
                "name": "timeUnits_dom",
                "value": "分钟"
              },
              {
                "name": "outDeal_dom",
                "value": "邮件"
              },
              {
                "name": "timeUnitsN_dom",
                "value": "分钟"
              },
              {
                "name": "dealEvent_dom",
                "value": "分支聚合事件"
              }
            ]
          }
        },
        "assignment": {
          "className": "role",
          "params": {
            "data": [
              {
                "name": "isAllSelectedCheck",
                "value": "Y"
              },
              {
                "name": "isradioCheck",
                "value": "Y"
              },
              {
                "name": "checkChildOrgCheck",
                "value": "N"
              },
              {
                "name": "roleList",
                "value": "NETWORK_MAINTENANCE_PERSONNEL#PURCHAS_ADMIN"
              },
              {
                "name": "roleListValue",
                "value": "网络维护人员(第三方)#采购经理"
              },
              {
                "name": "searchOrgLevel_level",
                "value": "0"
              },
              {
                "name": "checkEveryOrgLevelCheck",
                "value": "N"
              },
              {
                "name": "orgList",
                "value": "00240091000000000000#00240108000000000000"
              },
              {
                "name": "orgListValue",
                "value": "省公司数据部#省公司终端运营中心"
              }
            ]
          }
        },
        "other": {
          "params": {
            "data": [
              {
                
              },
              {
                "ruleName": "bpm_parent_kinds",
                "ruleValue": "aaa"
              },
              {
                
              },
              {
                
              }
            ]
          }
        },
        "oryx_freeSetting": {
          "data": [
            { "ruleId": "1" },
            {
              "ruleId": "2",
              "parentSettingType": "1测试-bpm_parent_kinds",
              "ruleName": "1测试-bpm_parent_kinds",
              "ruleValue": "aaa"
            },
            { "ruleId": "3" },
            { "ruleId": "4" }
          ]
        },
        "readerAssignment": {
          "className": "rule",
          "params": {
            "data": [
              {
                "name": "readerRequiredCheck",
                "value": "Y"
              },
              {
                "name": "isradioReadCheck",
                "value": "Y"
              },
              {
                "name": "checkChildOrgReadCheck",
                "value": "N"
              },
              {
                "name": "readerList",
                "value": "xuxueTest自定义规则12"
              },
              {
                "name": "readerListValue",
                "value": "xuxueTestUserRule12"
              },
              {
                "name": "roleIds",
                "value": "xuxueTestUserRule12"
              },
              { "name": "role_orgsIds" },
              { "name": "isReadAccount" }
            ]
          },
          "assignmentR_dom": "指派到规则"
        }
      },
      "transition": {
        "-to": "wqer",
        "description": {
          "-type": "basic",
          "oryx_expression": " 是否二级子部门发起 字符 大于 是否二级子部门发起 and  是否二级子部门发起 字符 大于 是否二级子部门发起 and  是否二级子部门发起 字符 大于 是否二级子部门发起 and  是否二级子部门发起 字符 大于 是否二级子部门发起 ",
          "oryx_expressionValue": "ysSecond CMP_CHAR gt '是否二级子部门发起' and ysSecond CMP_CHAR gt '是否二级子部门发起' and ysSecond CMP_CHAR gt '是否二级子部门发起' and ysSecond CMP_CHAR gt '是否二级子部门发起' ",
          "oryx_description": "#{ysSecond gt 是否二级子部门发起 and ysSecond gt 是否二级子部门发起 and ysSecond gt 是否二级子部门发起 and ysSecond gt 是否二级子部门发起 }",
          "com_condition": "{'ysSecond':'S','ysSecond':'S','ysSecond':'S','ysSecond':'S'}",
          "oryx_condition": {
            "data": [
              {
                "ruleId": "0",
                "ruleCondition": "and",
                "ruleConditionH": "and",
                "ruleDimension": "是否二级子部门发起",
                "ruleDimensionH": "CMP_CHAR",
                "ruleDimensionHS": "字符",
                "ruleOperator": "大于",
                "ruleOperatorH": "gt",
                "ruleValues": "是否二级子部门发起",
                "ruleDimensionWeiduKey": "ysSecond"
              },
              {
                "ruleId": "1",
                "ruleCondition": "and",
                "ruleConditionH": "and",
                "ruleDimension": "是否二级子部门发起",
                "ruleDimensionH": "CMP_CHAR",
                "ruleDimensionHS": "字符",
                "ruleOperator": "大于",
                "ruleOperatorH": "gt",
                "ruleValues": "是否二级子部门发起",
                "ruleDimensionWeiduKey": "ysSecond"
              },
              {
                "ruleId": "2",
                "ruleCondition": "and",
                "ruleConditionH": "and",
                "ruleDimension": "是否二级子部门发起",
                "ruleDimensionH": "CMP_CHAR",
                "ruleDimensionHS": "字符",
                "ruleOperator": "大于",
                "ruleOperatorH": "gt",
                "ruleValues": "是否二级子部门发起",
                "ruleDimensionWeiduKey": "ysSecond"
              },
              {
                "ruleId": "3",
                "ruleCondition": "and",
                "ruleConditionH": "and",
                "ruleDimension": "是否二级子部门发起",
                "ruleDimensionH": "CMP_CHAR",
                "ruleDimensionHS": "字符",
                "ruleOperator": "大于",
                "ruleOperatorH": "gt",
                "ruleValues": "是否二级子部门发起",
                "ruleDimensionWeiduKey": "ysSecond"
              }
            ]
          }
        }
      }
    },
    "end": {
      "-g": "595,214,48,48",
      "-name": "wqer"
    }
  }
}


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值