Home Database Mysql Tutorial 子流程---5

子流程---5

Jun 07, 2016 pm 03:06 PM
encoding u xml process

? xml version = 1.0 encoding = UTF-8 ? process-definition xmlns = urn:jbpm.org:jpdl-3.2 name = testTaskNode02 start-state name = start transition name = to = task1 / transition / start-state task-node name = task1 event type = task-create

<ol class="dp-xml">
<li class="alt"><span><span class="tag"></span><span class="tag-name">xml</span><span> </span><span class="attribute">version</span><span>=</span><span class="attribute-value">"1.0"</span><span> </span><span class="attribute">encoding</span><span>=</span><span class="attribute-value">"UTF-8"</span><span class="tag">?></span><span> </span></span></li>
<li><span> </span></li>
<li class="alt"><span><span class="tag"><span class="tag-name">process-definition</span><span> </span></span></span></li>
<li><span>  <span class="attribute">xmlns</span><span>=</span><span class="attribute-value">"urn:jbpm.org:jpdl-3.2"</span><span>  </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"testTaskNode02"</span><span class="tag">></span><span> </span></span></li>
<li class="alt"><span>   </span></li>
<li><span>   <span class="tag"><span class="tag-name">start-state</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"start"</span><span class="tag">></span><span> </span></span></span></li>
<li class="alt"><span>      <span class="tag"><span class="tag-name">transition</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">""</span><span> </span><span class="attribute">to</span><span>=</span><span class="attribute-value">"task1"</span><span class="tag">></span><span class="tag"></span><span class="tag-name">transition</span><span class="tag">></span><span> </span></span></span></li>
<li><span>   <span class="tag"></span><span class="tag-name">start-state</span><span class="tag">></span><span> </span></span></li>
<li class="alt"><span>   <span class="tag"><span class="tag-name">task-node</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"task1"</span><span class="tag">></span><span> </span></span></span></li>
<li><span>      <span class="tag"><span class="tag-name">event</span><span> </span><span class="attribute">type</span><span>=</span><span class="attribute-value">"task-create"</span><span class="tag">></span><span> </span></span></span></li>
<li class="alt"><span>        <span class="tag"><span class="tag-name">script</span><span class="tag">></span><span> </span></span></span></li>
<li><span>          print("触发了task-create事件"); </span></li>
<li class="alt"><span>        <span class="tag"></span><span class="tag-name">script</span><span class="tag">></span><span> </span></span></li>
<li><span>      <span class="tag"></span><span class="tag-name">event</span><span class="tag">></span><span> </span></span></li>
<li class="alt"><span>      <span class="tag"><span class="tag-name">event</span><span> </span><span class="attribute">type</span><span>=</span><span class="attribute-value">"task-start"</span><span class="tag">></span><span> </span></span></span></li>
<li><span>        <span class="tag"><span class="tag-name">script</span><span class="tag">></span><span> </span></span></span></li>
<li class="alt"><span>          print("触发了task-start事件"); </span></li>
<li><span>        <span class="tag"></span><span class="tag-name">script</span><span class="tag">></span><span> </span></span></li>
<li class="alt"><span>      <span class="tag"></span><span class="tag-name">event</span><span class="tag">></span><span> </span></span></li>
<li><span>      <span class="tag"><span class="tag-name">event</span><span> </span><span class="attribute">type</span><span>=</span><span class="attribute-value">"task-assign"</span><span class="tag">></span><span> </span></span></span></li>
<li class="alt"><span>        <span class="tag"><span class="tag-name">script</span><span class="tag">></span><span> </span></span></span></li>
<li><span>          print("触发了task-assign事件"); </span></li>
<li class="alt"><span>        <span class="tag"></span><span class="tag-name">script</span><span class="tag">></span><span> </span></span></li>
<li><span>      <span class="tag"></span><span class="tag-name">event</span><span class="tag">></span><span> </span></span></li>
<li class="alt"><span>      <span class="tag"><span class="tag-name">event</span><span> </span><span class="attribute">type</span><span>=</span><span class="attribute-value">"task-end"</span><span class="tag">></span><span> </span></span></span></li>
<li><span>        <span class="tag"><span class="tag-name">script</span><span class="tag">></span><span> </span></span></span></li>
<li class="alt"><span>          print("触发了task-end事件"); </span></li>
<li><span>        <span class="tag"></span><span class="tag-name">script</span><span class="tag">></span><span> </span></span></li>
<li class="alt"><span>      <span class="tag"></span><span class="tag-name">event</span><span class="tag">></span><span> </span></span></li>
<li><span>      <span class="tag"><span class="tag-name">task</span><span class="tag">></span><span> </span></span></span></li>
<li class="alt"><span>         <span class="tag"><span class="tag-name">assignment</span><span> </span><span class="attribute">actor-id</span><span>=</span><span class="attribute-value">"bf015"</span><span class="tag">></span><span class="tag"></span><span class="tag-name">assignment</span><span class="tag">></span><span> </span></span></span></li>
<li><span>      <span class="tag"></span><span class="tag-name">task</span><span class="tag">></span><span> </span></span></li>
<li class="alt"><span>      <span class="tag"><span class="tag-name">transition</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">""</span><span> </span><span class="attribute">to</span><span>=</span><span class="attribute-value">"end1"</span><span class="tag">></span><span class="tag"></span><span class="tag-name">transition</span><span class="tag">></span><span> </span></span></span></li>
<li><span>   <span class="tag"></span><span class="tag-name">task-node</span><span class="tag">></span><span> </span></span></li>
<li class="alt"><span>    </span></li>
<li><span>   <span class="tag"><span class="tag-name">end-state</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"end1"</span><span class="tag">></span><span class="tag"></span><span class="tag-name">end-state</span><span class="tag">></span><span> </span></span></span></li>
<li class="alt"><span><span class="tag"></span><span class="tag-name">process-definition</span><span class="tag">></span><span> </span></span></li>
<li><span> </span></li>
<li class="alt"><span> </span></li>
<li><span> </span></li>
<li class="alt"><span><span class="tag"></span><span class="tag-name">xml</span><span> </span><span class="attribute">version</span><span>=</span><span class="attribute-value">"1.0"</span><span> </span><span class="attribute">encoding</span><span>=</span><span class="attribute-value">"UTF-8"</span><span class="tag">?></span><span> </span></span></li>
<li><span> </span></li>
<li class="alt"><span><span class="tag"><span class="tag-name">process-definition</span><span> </span></span></span></li>
<li><span>  <span class="attribute">xmlns</span><span>=</span><span class="attribute-value">"urn:jbpm.org:jpdl-3.2"</span><span>  </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"slaveprocess"</span><span class="tag">></span><span> </span></span></li>
<li class="alt"><span>   <span class="tag"><span class="tag-name">start-state</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"start"</span><span class="tag">></span><span> </span></span></span></li>
<li><span>      <span class="tag"><span class="tag-name">transition</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">""</span><span> </span><span class="attribute">to</span><span>=</span><span class="attribute-value">"task1"</span><span class="tag">></span><span class="tag"></span><span class="tag-name">transition</span><span class="tag">></span><span> </span></span></span></li>
<li class="alt"><span>   <span class="tag"></span><span class="tag-name">start-state</span><span class="tag">></span><span> </span></span></li>
<li><span>    </span></li>
<li class="alt"><span>   <span class="tag"><span class="tag-name">task-node</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"task1"</span><span class="tag">></span><span> </span></span></span></li>
<li><span>      <span class="tag"><span class="tag-name">task</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"slave task"</span><span class="tag">></span><span> </span></span></span></li>
<li class="alt"><span>        <span class="tag"><span class="tag-name">assignment</span><span> </span><span class="attribute">actor-id</span><span>=</span><span class="attribute-value">"slave"</span><span class="tag">></span><span class="tag"></span><span class="tag-name">assignment</span><span class="tag">></span><span> </span></span></span></li>
<li><span>      <span class="tag"></span><span class="tag-name">task</span><span class="tag">></span><span> </span></span></li>
<li class="alt"><span>      <span class="tag"><span class="tag-name">transition</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">""</span><span> </span><span class="attribute">to</span><span>=</span><span class="attribute-value">"end1"</span><span class="tag">></span><span class="tag"></span><span class="tag-name">transition</span><span class="tag">></span><span> </span></span></span></li>
<li><span>   <span class="tag"></span><span class="tag-name">task-node</span><span class="tag">></span><span> </span></span></li>
<li class="alt"><span>   <span class="tag"><span class="tag-name">end-state</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"end1"</span><span class="tag">></span><span class="tag"></span><span class="tag-name">end-state</span><span class="tag">></span><span> </span></span></span></li>
<li><span><span class="tag"></span><span class="tag-name">process-definition</span><span class="tag">></span><span> </span></span></li>
<li class="alt"><span> </span></li>
<li><span> </span></li>
<li class="alt"><span> </span></li>
<li><span><span class="tag"></span><span class="tag-name">xml</span><span> </span><span class="attribute">version</span><span>=</span><span class="attribute-value">"1.0"</span><span> </span><span class="attribute">encoding</span><span>=</span><span class="attribute-value">"UTF-8"</span><span class="tag">?></span><span> </span></span></li>
<li class="alt"><span> </span></li>
<li><span><span class="tag"><span class="tag-name">process-definition</span><span> </span></span></span></li>
<li class="alt"><span>  <span class="attribute">xmlns</span><span>=</span><span class="attribute-value">"urn:jbpm.org:jpdl-3.2"</span><span>  </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"masterprocess"</span><span class="tag">></span><span> </span></span></li>
<li><span>   <span class="tag"><span class="tag-name">start-state</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"start"</span><span class="tag">></span><span> </span></span></span></li>
<li class="alt"><span>      <span class="tag"><span class="tag-name">transition</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">""</span><span> </span><span class="attribute">to</span><span>=</span><span class="attribute-value">"task1"</span><span class="tag">></span><span class="tag"></span><span class="tag-name">transition</span><span class="tag">></span><span> </span></span></span></li>
<li><span>   <span class="tag"></span><span class="tag-name">start-state</span><span class="tag">></span><span> </span></span></li>
<li class="alt"><span>   <span class="tag"><span class="tag-name">task-node</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"task1"</span><span class="tag">></span><span> </span></span></span></li>
<li><span>      <span class="tag"><span class="tag-name">task</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"master task"</span><span class="tag">></span><span> </span></span></span></li>
<li class="alt"><span>         <span class="tag"><span class="tag-name">assignment</span><span> </span><span class="attribute">actor-id</span><span>=</span><span class="attribute-value">"master"</span><span class="tag">></span><span class="tag"></span><span class="tag-name">assignment</span><span class="tag">></span><span> </span></span></span></li>
<li><span>      <span class="tag"></span><span class="tag-name">task</span><span class="tag">></span><span> </span></span></li>
<li class="alt"><span>      <span class="tag"><span class="tag-name">transition</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">""</span><span> </span><span class="attribute">to</span><span>=</span><span class="attribute-value">"process1"</span><span class="tag">></span><span class="tag"></span><span class="tag-name">transition</span><span class="tag">></span><span> </span></span></span></li>
<li><span>   <span class="tag"></span><span class="tag-name">task-node</span><span class="tag">></span><span> </span></span></li>
<li class="alt"><span>    </span></li>
<li><span>   <span class="tag"><span class="tag-name">process-state</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"process1"</span><span class="tag">></span><span> </span></span></span></li>
<li class="alt"><span>      <span class="tag"><span class="tag-name">sub-process</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"slaveprocess"</span><span class="tag">></span><span class="tag"></span><span class="tag-name">sub-process</span><span class="tag">></span><span> </span></span></span></li>
<li><span>      <span class="tag"><span class="tag-name">variable</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"masterVar"</span><span> </span><span class="attribute">access</span><span>=</span><span class="attribute-value">"read"</span><span class="tag">></span><span class="tag"></span><span class="tag-name">variable</span><span class="tag">></span><span> </span></span></span></li>
<li class="alt"><span>      <span class="tag"><span class="tag-name">variable</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"slaveVar"</span><span> </span><span class="attribute">access</span><span>=</span><span class="attribute-value">"write"</span><span class="tag">></span><span class="tag"></span><span class="tag-name">variable</span><span class="tag">></span><span> </span></span></span></li>
<li><span>      <span class="tag"><span class="tag-name">transition</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">""</span><span> </span><span class="attribute">to</span><span>=</span><span class="attribute-value">"task2"</span><span class="tag">></span><span class="tag"></span><span class="tag-name">transition</span><span class="tag">></span><span> </span></span></span></li>
<li class="alt"><span>   <span class="tag"></span><span class="tag-name">process-state</span><span class="tag">></span><span> </span></span></li>
<li><span>    </span></li>
<li class="alt"><span>   <span class="tag"><span class="tag-name">task-node</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"task2"</span><span class="tag">></span><span> </span></span></span></li>
<li><span>      <span class="tag"><span class="tag-name">task</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"master task2"</span><span class="tag">></span><span> </span></span></span></li>
<li class="alt"><span>         <span class="tag"><span class="tag-name">assignment</span><span> </span><span class="attribute">actor-id</span><span>=</span><span class="attribute-value">"master2"</span><span class="tag">></span><span class="tag"></span><span class="tag-name">assignment</span><span class="tag">></span><span> </span></span></span></li>
<li><span>      <span class="tag"></span><span class="tag-name">task</span><span class="tag">></span><span> </span></span></li>
<li class="alt"><span>      <span class="tag"><span class="tag-name">transition</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">""</span><span> </span><span class="attribute">to</span><span>=</span><span class="attribute-value">"end1"</span><span class="tag">></span><span class="tag"></span><span class="tag-name">transition</span><span class="tag">></span><span> </span></span></span></li>
<li><span>   <span class="tag"></span><span class="tag-name">task-node</span><span class="tag">></span><span> </span></span></li>
<li class="alt"><span>   <span class="tag"><span class="tag-name">end-state</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"end1"</span><span class="tag">></span><span class="tag"></span><span class="tag-name">end-state</span><span class="tag">></span><span> </span></span></span></li>
<li><span><span class="tag"></span><span class="tag-name">process-definition</span><span class="tag">></span><span> </span></span></li>
</ol>
Copy after login

 

小俊垃圾回收站

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Can I open an XML file using PowerPoint? Can I open an XML file using PowerPoint? Feb 19, 2024 pm 09:06 PM

Can XML files be opened with PPT? XML, Extensible Markup Language (Extensible Markup Language), is a universal markup language that is widely used in data exchange and data storage. Compared with HTML, XML is more flexible and can define its own tags and data structures, making the storage and exchange of data more convenient and unified. PPT, or PowerPoint, is a software developed by Microsoft for creating presentations. It provides a comprehensive way of

Filtering and sorting XML data using Python Filtering and sorting XML data using Python Aug 07, 2023 pm 04:17 PM

Implementing filtering and sorting of XML data using Python Introduction: XML is a commonly used data exchange format that stores data in the form of tags and attributes. When processing XML data, we often need to filter and sort the data. Python provides many useful tools and libraries to process XML data. This article will introduce how to use Python to filter and sort XML data. Reading the XML file Before we begin, we need to read the XML file. Python has many XML processing libraries,

Convert XML data to CSV format in Python Convert XML data to CSV format in Python Aug 11, 2023 pm 07:41 PM

Convert XML data in Python to CSV format XML (ExtensibleMarkupLanguage) is an extensible markup language commonly used for data storage and transmission. CSV (CommaSeparatedValues) is a comma-delimited text file format commonly used for data import and export. When processing data, sometimes it is necessary to convert XML data to CSV format for easy analysis and processing. Python is a powerful

Python implements conversion between XML and JSON Python implements conversion between XML and JSON Aug 07, 2023 pm 07:10 PM

Python implements conversion between XML and JSON Introduction: In the daily development process, we often need to convert data between different formats. XML and JSON are common data exchange formats. In Python, we can use various libraries to convert between XML and JSON. This article will introduce several commonly used methods, with code examples. 1. To convert XML to JSON in Python, we can use the xml.etree.ElementTree module

Handling errors and exceptions in XML using Python Handling errors and exceptions in XML using Python Aug 08, 2023 pm 12:25 PM

Handling Errors and Exceptions in XML Using Python XML is a commonly used data format used to store and represent structured data. When we use Python to process XML, sometimes we may encounter some errors and exceptions. In this article, I will introduce how to use Python to handle errors and exceptions in XML, and provide some sample code for reference. Use try-except statement to catch XML parsing errors When we use Python to parse XML, sometimes we may encounter some

How to open multiple Toutiao accounts? What is the process for applying for a Toutiao account? How to open multiple Toutiao accounts? What is the process for applying for a Toutiao account? Mar 22, 2024 am 11:00 AM

With the popularity of mobile Internet, Toutiao has become one of the most popular news information platforms in my country. Many users hope to have multiple accounts on the Toutiao platform to meet different needs. So, how to open multiple Toutiao accounts? This article will introduce in detail the method and application process of opening multiple Toutiao accounts. 1. How to open multiple Toutiao accounts? The method of opening multiple Toutiao accounts is as follows: On the Toutiao platform, users can register accounts through different mobile phone numbers. Each mobile phone number can only register one Toutiao account, which means that users can use multiple mobile phone numbers to register multiple accounts. 2. Email registration: Use different email addresses to register a Toutiao account. Similar to mobile phone number registration, each email address can also register a Toutiao account. 3. Log in with third-party account

How to handle XML and JSON data formats in C# development How to handle XML and JSON data formats in C# development Oct 09, 2023 pm 06:15 PM

How to handle XML and JSON data formats in C# development requires specific code examples. In modern software development, XML and JSON are two widely used data formats. XML (Extensible Markup Language) is a markup language used to store and transmit data, while JSON (JavaScript Object Notation) is a lightweight data exchange format. In C# development, we often need to process and operate XML and JSON data. This article will focus on how to use C# to process these two data formats, and attach

Python parsing special characters and escape sequences in XML Python parsing special characters and escape sequences in XML Aug 08, 2023 pm 12:46 PM

Python parses special characters and escape sequences in XML XML (eXtensibleMarkupLanguage) is a commonly used data exchange format used to transfer and store data between different systems. When processing XML files, you often encounter situations that contain special characters and escape sequences, which may cause parsing errors or misinterpretation of the data. Therefore, when parsing XML files using Python, we need to understand how to handle these special characters and escape sequences. 1. Special characters and

See all articles