01-06-2009 01:48 PM
<?xml version="1.0" encoding="UTF-8"?>
<!– Definition of new Model –>
<model name="xactwf:xactWorkflowModel"
xmlns="http://www.alfresco.org/model/dictionary/1.0">
<!– Optional meta-data about the model –>
<description>X-Act Workflow Model</description>
<author>Paul Mahoney</author>
<version>1.0</version>
<!– Imports are required to allow references to definitions in other models –>
<imports>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d" />
<import uri="http://www.alfresco.org/model/bpm/1.0" prefix="bpm" />
</imports>
<!– Introduction of new namespaces defined by this model –>
<namespaces>
<namespace uri="http://www.xact.co.uk/model/workflow/1.0" prefix="xactwf" />
</namespaces>
<types>
<type name="xactwf:submitHelloWorldTask">
<parent>bpm:startTask</parent>
<properties>
<property name="xactwf:helloName">
<type>d:text</type>
<mandatory>true</mandatory>
<multiple>false</multiple>
</property>
</properties>
</type>
</types>
</model>
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<!– Registration of new models –>
<bean id="extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
<property name="models">
<list>
<value>alfresco/extension/model/xactModel.xml</value>
<value>alfresco/extension/model/xactWorkflowModel.xml</value>
</list>
</property>
</bean>
<!– Registration of resource bundles –>
<bean id="extension.workflowBootstrap" parent="workflowDeployer">
<property name="labels">
<list>
<value>alfresco.extension.xactWorkflow</value>
</list>
</property>
</bean>
</beans>
<?xml version="1.0" encoding="UTF-8"?>
<process-definition xmlns="urn:jbpm.org:jpdl-3.1" name="xactwf:helloWorldUI">
<start-state name="start">
<task name="xactwf:submitHelloWorldTask"></task>
<transition name="" to="hello"></transition>
</start-state>
<node name="hello">
<transition name="" to="end1">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
<variable name="xactwf_helloName" access="read"/>
<expression>
logger.log("Hello, " + xactwf_helloName + "!");
</expression>
</script>
</action>
</transition>
</node>
<end-state name="end1"></end-state>
</process-definition>
01-08-2009 05:08 PM
01-15-2009 12:17 PM
<!– workflow property sheets –>
<config evaluator="node-type" condition="xactwf:submitHelloWorldTask" replace="true">
<property-sheet>
<show-property name="xactwf:helloName" />
</property-sheet>
</config>
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.