xml和json互转的格式,结构

前端之家收集整理的这篇文章主要介绍了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'}</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" name="wqer" />
	</process>
	

json:

{
  "process": {
    "-xmlns": "http://jbpm.org/4.4/jpdl","-name": "ggggggggggg","start": {
      "-g": "194,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,50","-name": "aaa","description": {
        "workflow": {
          "params": {
            "data": [
              {
                "name": "noticeCheck","value": "Y"
              },{
                "name": "emailCheck",{
                "name": "repeatCheck",{
                "name": "reminderCheck",{
                "name": "readOnlyCheck",{
                "name": "taskTime","value": "1"
              },{
                "name": "timeUnits","value": "分钟"
              },{
                "name": "outDeal","value": "邮件"
              },{
                "name": "noticeFrequency",{
                "name": "timeUnitsN",{
                "name": "dealEvent","value": "join"
              },{
                "name": "timeUnits_dom",{
                "name": "outDeal_dom",{
                "name": "timeUnitsN_dom",{
                "name": "dealEvent_dom","value": "分支聚合事件"
              }
            ]
          }
        },"assignment": {
          "className": "role","params": {
            "data": [
              {
                "name": "isAllSelectedCheck",{
                "name": "isradioCheck",{
                "name": "checkChildOrgCheck","value": "N"
              },{
                "name": "roleList","value": "NETWORK_MAINTENANCE_PERSONNEL#PURCHAS_ADMIN"
              },{
                "name": "roleListValue","value": "网络维护人员(第三方)#采购经理"
              },{
                "name": "searchOrgLevel_level","value": "0"
              },{
                "name": "checkEveryOrgLevelCheck",{
                "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",{
                "name": "isradioReadCheck",{
                "name": "checkChildOrgReadCheck",{
                "name": "readerList","value": "xuxueTest自定义规则12"
              },{
                "name": "readerListValue","value": "xuxueTestUserRule12"
              },{
                "name": "roleIds",{ "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'}","oryx_condition": {
            "data": [
              {
                "ruleId": "0","ruleCondition": "and","ruleConditionH": "and","ruleDimension": "是否二级子部门发起","ruleDimensionH": "CMP_CHAR","ruleDimensionHS": "字符","ruleOperator": "大于","ruleOperatorH": "gt","ruleValues": "是否二级子部门发起","ruleDimensionWeiduKey": "ysSecond"
              },{
                "ruleId": "1",{
                "ruleId": "2",{
                "ruleId": "3","ruleDimensionWeiduKey": "ysSecond"
              }
            ]
          }
        }
      }
    },"end": {
      "-g": "595,"-name": "wqer"
    }
  }
}

猜你在找的XML相关文章