Commits

Anonymous committed fd93bdf

Added names to conditions and functions to make it look nicer if imported in designer

Comments (0)

Files changed (1)

src/test/samples/example.xml

 					<condition type="beanshell">
 						<arg name="script">true</arg>
 					</condition>
-					<condition type="class">
+					<condition name="check.usergroup" type="class">
 						<arg name="class.name">com.opensymphony.workflow.util.OSUserGroupCondition</arg>
 						<arg name="group">foos</arg>
 					</condition>
 				</conditions>
 			</restrict-to>
 			<pre-functions>
-				<function type="class">
+				<function name="set.caller" type="class">
 					<arg name="class.name">com.opensymphony.workflow.util.Caller</arg>
 				</function>
 			</pre-functions>
 				<permission name="permA">
 					<restrict-to>
 						<conditions type="AND">
-							<condition type="class">
+							<condition name="check.status" type="class">
 								<arg name="class.name">com.opensymphony.workflow.util.StatusCondition</arg>
 								<arg name="status">Underway</arg>
 							</condition>
-							<condition type="class">
+							<condition name="allow.owner.only" type="class">
 								<arg name="class.name">com.opensymphony.workflow.util.AllowOwnerOnlyCondition</arg>
 							</condition>
 						</conditions>
 							<condition type="beanshell">
 								<arg name="script">true</arg>
 							</condition>
-							<condition type="class">
+							<condition name="check.status" type="class">
 								<arg name="class.name">com.opensymphony.workflow.util.StatusCondition</arg>
 								<arg name="status">Underway</arg>
 							</condition>
-							<condition type="class">
+							<condition name="allow.owner.only" type="class">
 								<arg name="class.name">com.opensymphony.workflow.util.AllowOwnerOnlyCondition</arg>
 							</condition>
 						</conditions>
 				<permission name="permB">
 					<restrict-to>
 						<conditions type="AND">
-							<condition type="class">
+							<condition name="check.status" type="class">
 								<arg name="class.name">com.opensymphony.workflow.util.StatusCondition</arg>
 								<arg name="status">Underway</arg>
 							</condition>
-							<condition type="class">
+							<condition name="allow.owner.only" type="class">
 								<arg name="class.name">com.opensymphony.workflow.util.AllowOwnerOnlyCondition</arg>
 							</condition>
 						</conditions>
 				<action id="2" name="Sign Up For Editing">
 					<restrict-to>
 						<conditions type="AND">
-							<condition type="class">
+							<condition name="check.status" type="class">
 								<arg name="class.name">com.opensymphony.workflow.util.StatusCondition</arg>
 								<arg name="status">Queued</arg>
 							</condition>
-							<condition type="class">
+							<condition name="check.usergroup" type="class">
 								<arg name="class.name">com.opensymphony.workflow.util.OSUserGroupCondition</arg>
 								<arg name="group">bars</arg>
 							</condition>
 						</conditions>
 					</restrict-to>
 					<pre-functions>
-						<function type="class">
+						<function name="set.caller" type="class">
 							<arg name="class.name">com.opensymphony.workflow.util.Caller</arg>
 						</function>
 					</pre-functions>
 				<action id="3" name="Finish Editing">
 					<restrict-to>
 						<conditions type="AND">
-							<condition type="class">
+							<condition name="check.status" type="class">
 								<arg name="class.name">com.opensymphony.workflow.util.StatusCondition</arg>
 								<arg name="status">Underway</arg>
 							</condition>
-							<condition type="class">
+							<condition name="allow.owner.only" type="class">
 								<arg name="class.name">com.opensymphony.workflow.util.AllowOwnerOnlyCondition</arg>
 							</condition>
 						</conditions>
 					</restrict-to>
 					<pre-functions>
-						<function type="class">
+						<function name="set.most.recent.owner" type="class">
 							<arg name="class.name">com.opensymphony.workflow.util.MostRecentOwner</arg>
 							<arg name="stepId">1</arg>
 						</function>
 				<action id="4" name="Requeue Editing">
 					<restrict-to>
 						<conditions type="AND">
-							<condition type="class">
+							<condition name="check.status" type="class">
 								<arg name="class.name">com.opensymphony.workflow.util.StatusCondition</arg>
 								<arg name="status">Underway</arg>
 							</condition>
-							<condition type="class">
+							<condition name="allow.owner.only" type="class">
 								<arg name="class.name">com.opensymphony.workflow.util.AllowOwnerOnlyCondition</arg>
 							</condition>
 						</conditions>
 				<permission name="permA">
 					<restrict-to>
 						<conditions type="AND">
-							<condition type="class">
+							<condition name="check.status" type="class">
 								<arg name="class.name">com.opensymphony.workflow.util.StatusCondition</arg>
 								<arg name="status">Underway</arg>
 							</condition>
-							<condition type="class">
+							<condition name="allow.owner.only" type="class">
 								<arg name="class.name">com.opensymphony.workflow.util.AllowOwnerOnlyCondition</arg>
 							</condition>
 						</conditions>
 				<action id="5" name="More Edits">
 					<restrict-to>
 						<conditions type="AND">
-							<condition type="class">
+							<condition name="check.status" type="class">
 								<arg name="class.name">com.opensymphony.workflow.util.StatusCondition</arg>
 								<arg name="status">Underway</arg>
 							</condition>
-							<condition type="class">
+							<condition name="allow.owner.only" type="class">
 								<arg name="class.name">com.opensymphony.workflow.util.AllowOwnerOnlyCondition</arg>
 							</condition>
 						</conditions>
 					</restrict-to>
 					<pre-functions>
-						<function type="class">
+						<function name="set.most.recent.owner" type="class">
 							<arg name="class.name">com.opensymphony.workflow.util.MostRecentOwner</arg>
 							<arg name="stepId">2</arg>
 						</function>
 				<action id="6" name="Peer Review">
 					<restrict-to>
 						<conditions type="AND">
-							<condition type="class">
+							<condition name="check.status" type="class">
 								<arg name="class.name">com.opensymphony.workflow.util.StatusCondition</arg>
 								<arg name="status">Underway</arg>
 							</condition>
-							<condition type="class">
+							<condition name="allow.owner.only" type="class">
 								<arg name="class.name">com.opensymphony.workflow.util.AllowOwnerOnlyCondition</arg>
 							</condition>
 						</conditions>
 				<action id="7" name="Publish Doc">
 					<restrict-to>
 						<conditions type="AND">
-							<condition type="class">
+							<condition name="check.status" type="class">
 								<arg name="class.name">com.opensymphony.workflow.util.StatusCondition</arg>
 								<arg name="status">Underway</arg>
 							</condition>
-							<condition type="class">
+							<condition name="allow.owner.only" type="class">
 								<arg name="class.name">com.opensymphony.workflow.util.AllowOwnerOnlyCondition</arg>
 							</condition>
 						</conditions>
 					</restrict-to>
 					<pre-functions>
-						<function type="class">
+						<function name="set.most.recent.owner" type="class">
 							<arg name="class.name">com.opensymphony.workflow.util.MostRecentOwner</arg>
 							<arg name="stepId">2</arg>
 						</function>
 				<permission name="permC">
 					<restrict-to>
 						<conditions type="AND">
-							<condition type="class">
+							<condition name="check.status" type="class">
 								<arg name="class.name">com.opensymphony.workflow.util.StatusCondition</arg>
 								<arg name="status">Underway</arg>
 							</condition>
-							<condition type="class">
+							<condition name="allow.owner.only" type="class">
 								<arg name="class.name">com.opensymphony.workflow.util.AllowOwnerOnlyCondition</arg>
 							</condition>
 						</conditions>
 				<action id="8" name="Finish Second Review">
 					<restrict-to>
 						<conditions type="AND">
-							<condition type="class">
+							<condition name="check.status" type="class">
 								<arg name="class.name">com.opensymphony.workflow.util.StatusCondition</arg>
 								<arg name="status">Underway</arg>
 							</condition>
-							<condition type="class">
+							<condition name="allow.owner.only" type="class">
 								<arg name="class.name">com.opensymphony.workflow.util.AllowOwnerOnlyCondition</arg>
 							</condition>
 						</conditions>
 					</restrict-to>
 					<pre-functions>
-						<function type="class">
+						<function name="set.most.recent.owner" type="class">
 							<arg name="class.name">com.opensymphony.workflow.util.MostRecentOwner</arg>
 							<arg name="stepId">3</arg>
 						</function>
 				<action id="9" name="Sign Up For Second Review">
 					<restrict-to>
 						<conditions type="AND">
-							<condition type="class">
+							<condition name="check.status" type="class">
 								<arg name="class.name">com.opensymphony.workflow.util.StatusCondition</arg>
 								<arg name="status">Queued</arg>
 							</condition>
-							<condition type="class">
+							<condition name="check.usergroup" type="class">
 								<arg name="class.name">com.opensymphony.workflow.util.OSUserGroupCondition</arg>
 								<arg name="group">bazs</arg>
 							</condition>
 						</conditions>
 					</restrict-to>
 					<pre-functions>
-						<function type="class">
+						<function name="set.caller" type="class">
 							<arg name="class.name">com.opensymphony.workflow.util.Caller</arg>
 						</function>
 					</pre-functions>
 				<action id="10" name="Queue Second Review">
 					<restrict-to>
 						<conditions type="AND">
-							<condition type="class">
+							<condition name="check.status" type="class">
 								<arg name="class.name">com.opensymphony.workflow.util.StatusCondition</arg>
 								<arg name="status">Underway</arg>
 							</condition>
-							<condition type="class">
+							<condition name="allow.owner.only" type="class">
 								<arg name="class.name">com.opensymphony.workflow.util.AllowOwnerOnlyCondition</arg>
 							</condition>
 						</conditions>
 				<action id="11" name="Publish Document">
 					<restrict-to>
 						<conditions type="AND">
-							<condition type="class">
+							<condition name="check.status" type="class">
 								<arg name="class.name">com.opensymphony.workflow.util.StatusCondition</arg>
 								<arg name="status">Underway</arg>
 							</condition>
-							<condition type="class">
+							<condition name="allow.owner.only" type="class">
 								<arg name="class.name">com.opensymphony.workflow.util.AllowOwnerOnlyCondition</arg>
 							</condition>
 						</conditions>
 					</restrict-to>
 					<pre-functions>
-						<function type="class">
+						<function name="set.caller" type="class">
 							<arg name="class.name">com.opensymphony.workflow.util.Caller</arg>
 						</function>
 					</pre-functions>
 				<action name="Finish Foo" id="12">
 					<restrict-to>
 						<conditions type="AND">
-							<condition type="class">
+							<condition name="check.status" type="class">
 								<arg name="class.name">com.opensymphony.workflow.util.StatusCondition</arg>
 								<arg name="status">Underway</arg>
 								<arg name="stepId">6</arg>
 							</condition>
-							<condition type="class">
+							<condition name="allow.owner.only" type="class">
 								<arg name="class.name">com.opensymphony.workflow.util.AllowOwnerOnlyCondition</arg>
 								<arg name="stepId">6</arg>
 							</condition>
 				<action name="Finish Bar" id="13">
 					<restrict-to>
 						<conditions type="AND">
-							<condition type="class">
+							<condition name="check.status" type="class">
 								<arg name="class.name">com.opensymphony.workflow.util.StatusCondition</arg>
 								<arg name="status">Underway</arg>
 								<arg name="stepId">7</arg>
 							</condition>
-							<condition type="class">
+							<condition name="allow.owner.only" type="class">
 								<arg name="class.name">com.opensymphony.workflow.util.AllowOwnerOnlyCondition</arg>
 								<arg name="stepId">7</arg>
 							</condition>
 				<action name="Finish Baz" id="14">
 					<restrict-to>
 						<conditions type="AND">
-							<condition type="class">
+							<condition name="check.status" type="class">
 								<arg name="class.name">com.opensymphony.workflow.util.StatusCondition</arg>
 								<arg name="status">Underway</arg>
 								<arg name="stepId">8</arg>
 							</condition>
-							<condition type="class">
+							<condition name="allow.owner.only" type="class">
 								<arg name="class.name">com.opensymphony.workflow.util.AllowOwnerOnlyCondition</arg>
 								<arg name="stepId">8</arg>
 							</condition>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.