11-30-2008 10:26 PM
12-11-2008 01:42 PM
…
<swimlane name="initiator" />
<start-state name="start-state1">
<task name="wfns:doSomething" swimlane="initiator" />
<transition to="tran"></transition>
</start-state>
<swimlane name="scanning">
<assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
<actor>#{wfns_scannerPerson}</actor>
</assignment>
</swimlane>
<swimlane name="qc">
<assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
<actor>#{wfns_qcPerson}</actor>
</assignment>
</swimlane>
…
First, you need use a <start-state> node. The <start-state> node signifies the begining of the workflow. Inside the <start-state> is a task. the task is described in modelname-content-model.xml.
…
<type name="wfns:doSomethign">
<parent>bpm:startTask</parent>
<properties>
<property name="wfns:scannerPerson">
<type>cm:person</type>
<mandatory>false</mandatory>
<multiple>false</multiple>
</property>
<property name="wfns:qcPerson">
<type>cm:person</type>
<mandatory>false</mandatory>
<multiple>false</multiple>
</property>
</properties>
</type>
…
modelname-content-model.xml we have defined two properties as cm
<beans>
<!– Registration of new models –>
<bean id="extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
<property name="models">
<list>
<value>alfresco/extension/model/customWorkflowModel.xml</value>
</list>
</property>
</bean>
</beans>
custom-model-context.xml is a pretty vanilla file. In the dictionaryBootstrap bean we tell alfresco where to find the model.
…
<alfresco-config>
<config evaluator="node-type" condition="wfns:doSomethign" replace="true">
<property-sheet>
<separator name="sep2" display-label-id="users_and_roles" component-generator="HeaderSeparatorGenerator" />
<show-property name="wfns:scannerPerson" />
<show-property name="wfns:qcPerson" />
</property-sheet>
</config>
</alfresco-config>
…
The web-client automatically does some default stuff, but we don't care. thats what that replace="true" is about. Everything else tells alfresco to display stuff.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.