08-27-2009 12:27 AM
<?xml version="1.0" encoding="UTF-8"?>
<!– Definition of new Model –>
<model name="hw:workflowmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<!– Optional meta-data about the model –>
<description>Someco Workflow Model</description>
<author>SeVer</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.someco.com/model/workflow/1.0" prefix="hw" />
</namespaces>
<types>
<type name="hw:submitHelloWorldTask">
<parent>bpm:startTask</parent>
<properties>
<property name="hw:helloName">
<type>d:text</type>
<mandatory>true</mandatory>
<multiple>false</multiple>
</property>
<property name="hw:helloOther">
<type>d:text</type>
<mandatory>false</mandatory>
<multiple>false</multiple>
</property>
</properties>
</type>
</types>
</model>
<?xml version="1.0" encoding="UTF-8"?>
<process-definition xmlns="urn:jbpm.org:jpdl-3.1" name="hw:helloWorld">
<start-state name="start">
<task name="hw:submitHelloWorldTask" />
<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="hw_helloName" access="write"/>
<expression>
logger.log("Hello, " + hw_helloName + "!");
</expression>
</script>
</action>
</transition>
</node>
<end-state name="end1"/>
</process-definition>
<alfresco-config>
<config evaluator="string-compare" condition="Languages">
<languages>
<language locale="ru_RU">Russian</language>
</languages>
</config>
<config evaluator="node-type" condition="hw:submitHelloWorldTask" replace="true">
<property-sheet>
<show-property name="hw:helloName" />
<show-property name="hw:helloOther" />
</property-sheet>
</config>
</alfresco-config>
#
# Hello World UI Workflow
#
# HelloWorldModel related strings
hw_workflowmodel.type.hw_submitHelloWorldTask.title=Start Hello World UI Workflow
hw_workflowmodel.type.hw_submitHelloWorldTask.description=Submit a workflow that says hello in the log
hw_workflowmodel.property.hw_helloName.title=Name
hw_workflowmodel.property.hw_helloName.description=Say hello to this person
hw_workflowmodel.property.hw_helloOther.title=Something Other
hw_workflowmodel.property.hw_helloOther.description=Enter something here
# processdefinition related strings
hw_helloWorld.workflow.title=Hello World UI
hw_helloWorld.workflow.description=A simple hello world process
08-27-2009 04:45 AM
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<bean id="helloworld.workflowBootstrap" parent="workflowDeployer">
<property name="workflowDefinitions">
<list>
<props>
<prop key="engineId">jbpm</prop>
<prop key="location">alfresco/extension/workflow/HelloWorldProcessDefinition.xml</prop>
<prop key="mimetype">text/xml</prop>
<prop key="redeploy">false</prop>
</props>
</list>
</property>
<property name="models">
<list>
<!– NOTE: The above process definition relies on the default workflowModel.xml –>
<!– which is already registered during Alfresco startup. –>
<!– See bootstrap-context.xml (workflowBootstrap). –>
<value>alfresco/extension/workflow/HelloWorldModel.xml</value>
</list>
</property>
<property name="labels">
<list>
<!– NOTE: The above process definition relies on the default workflow-messages.properties –>
<!– which is already registered during Alfresco startup –>
<!– See bootstrap-context.xml (workflowBootstrap). –>
<value>alfresco/extension/workflow/HelloWorld</value>
</list>
</property>
</bean>
</beans>
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.