04-02-2014 02:44 AM
04-02-2014 06:32 PM
04-03-2014 12:41 AM
06-02-2017 04:58 AM
How do you achieve this pls?
04-04-2014 12:46 AM
04-07-2014 11:53 AM
04-08-2014 02:57 AM
04-08-2014 02:46 AM
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<alfresco-configuration>
<config condition="helpdeskworkflow:resolver" evaluator="task-type">
<forms>
<form>
<field-visibility>
<show id="bpm:description"/>
<show id="bpm:comment"/>
<show id="helpdeskworkflow:outcome"/>
<show id="transitions"/>
</field-visibility>
<appearance>
<set appearance="title" label-id="Info" id="info"/>
<field set="info" label-id="workflow.field.message" id="bpm:description">
<control template="/org/alfresco/components/form/controls/info.ftl"/>
</field>
<field set="info" label-id="workflow.field.comment" id="bpm:comment">
<control template="/org/alfresco/components/form/controls/textarea.ftl"/>
</field>
<field set="info" label-id="Outcome" id="helpdeskworkflow:outcome"/>
<set id="response"/>
<field set="response" id="transitions"/>
</appearance>
</form>
</forms>
</config>
<config condition="helpdeskworkflow:verifier" evaluator="task-type">
<forms>
<form>
<field-visibility>
<show id="packageItems"/>
<show id="bpm:priority"/>
<show id="bpm:dueDate"/>
<show id="helpdeskworkflow:resolver"/>
<show id="helpdeskworkflow:outcome"/>
<show id="bpm:description"/>
<show id="transitions"/>
</field-visibility>
<appearance>
<set appearance="title" label-id="Info" id="info"/>
<field set="info" id="packageItems"/>
<field set="info" label-id="workflow.field.priority" id="bpm:priority">
<control template="/org/alfresco/components/form/controls/workflow/priority.ftl"/>
</field>
<field set="info" label-id="workflow.field.due" id="bpm:dueDate">
<control template="/org/alfresco/components/form/controls/date.ftl">
<control-param name="showTime">false</control-param>
<control-param name="submitTime">false</control-param>
</control>
</field>
<field set="info" label-id="workflow.field.due" id="bpm:dueDate">
<control template="/org/alfresco/components/form/controls/date.ftl">
<control-param name="showTime">false</control-param>
<control-param name="submitTime">false</control-param>
</control>
</field>
<field set="info" id="helpdeskworkflow:resolver"/>
<field set="info" label-id="Outcome" id="helpdeskworkflow:outcome">
<control template="/org/alfresco/components/form/controls/info.ftl"/>
</field>
<field set="info" label-id="workflow.field.message" id="bpm:description">
<control template="/org/alfresco/components/form/controls/info.ftl"/>
</field>
<set id="response"/>
<field set="response" id="transitions"/>
</appearance>
</form>
</forms>
</config>
<config condition="activiti$helpDeskWorkFlow" evaluator="string-compare">
<forms>
<form>
<field-visibility>
<show id="bpm:workflowDescription"/>
<show id="helpdeskworkflow:verifier"/>
<show id="helpdeskworkflow:resolver"/>
<show id="packageItems"/>
<show id="bpm:comment"/>
<show id="helpdeskworkflow:enterdate"/>
<show id="transitions"/>
</field-visibility>
<appearance>
<set appearance="title" label-id="Info" id="info"/>
<field set="info" label-id="workflow.field.message" id="bpm:workflowDescription">
<control template="/org/alfresco/components/form/controls/textarea.ftl"/>
</field>
<field set="info" id="helpdeskworkflow:verifier"/>
<field set="info" id="helpdeskworkflow:resolver"/>
<field set="info" id="packageItems"/>
<field set="info" label-id="workflow.field.comment" id="bpm:comment">
<control template="/org/alfresco/components/form/controls/textarea.ftl"/>
</field>
<field set="info" label-id="Enter Date" id="helpdeskworkflow:enterdate">
<control template="/org/alfresco/components/form/controls/date.ftl">
<control-param name="showTime">true</control-param>
<control-param name="submitTime">true</control-param>
</control>
</field>
<set id="response"/>
<field set="response" id="transitions"/>
</appearance>
</form>
</forms>
</config>
<config condition="helpdeskworkflow:start" evaluator="task-type">
<forms>
<form>
<field-visibility>
<show id="bpm:workflowDescription"/>
<show id="helpdeskworkflow:verifier"/>
<show id="helpdeskworkflow:resolver"/>
<show id="packageItems"/>
<show id="bpm:comment"/>
<show id="helpdeskworkflow:enterdate"/>
<show id="transitions"/>
</field-visibility>
<appearance>
<set appearance="title" label-id="Info" id="info"/>
<field set="info" label-id="workflow.field.message" id="bpm:workflowDescription">
<control template="/org/alfresco/components/form/controls/textarea.ftl"/>
</field>
<field set="info" id="helpdeskworkflow:verifier"/>
<field set="info" id="helpdeskworkflow:resolver"/>
<field set="info" id="packageItems"/>
<field set="info" label-id="workflow.field.comment" id="bpm:comment">
<control template="/org/alfresco/components/form/controls/textarea.ftl"/>
</field>
<field set="info" label-id="Enter Date" id="helpdeskworkflow:enterdate">
<control template="/org/alfresco/components/form/controls/date.ftl">
<control-param name="showTime">true</control-param>
<control-param name="submitTime">true</control-param>
</control>
</field>
<set id="response"/>
<field set="response" id="transitions"/>
</appearance>
</form>
</forms>
</config>
</alfresco-configuration>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<module-deployment>
<extension-module>kickstart_form_helpdeskworkflow</extension-module>
</module-deployment>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
<bean init-method="register" id="helpDeskWorkFlow.workflowBootstrap" class="org.springframework.extensions.config.ConfigBootstrap">
<property ref="web.config" name="configService"/>
<property name="configs">
<list>
<value>classpath:alfresco/web-extension/helpDeskWorkFlow-config-custom.xml</value>
</list>
</property>
</bean>
</beans>
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/test">
<process id="helpDeskWorkFlow" name="helpDeskWorkFlow" isExecutable="true">
<documentation>help Desk</documentation>
<startEvent id="start" activiti:initiator="initiatorUserName" activiti:formKey="helpdeskworkflow:start"></startEvent>
<sequenceFlow id="sequenceFlow1" sourceRef="start" targetRef="userTask1"></sequenceFlow>
<userTask id="userTask1" name="Resolver" activiti:assignee="${initiator.properties.userName}" activiti:formKey="helpdeskworkflow:resolver">
<extensionElements>
<activiti:taskListener event="create" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
<activiti:field name="script">
<activiti:string><![CDATA[
if (typeof bpm_workflowDueDate != 'undefined') task.dueDate = bpm_workflowDueDate;
if (typeof bpm_workflowPriority != 'undefined') task.priority = bpm_workflowPriority;;
]]></activiti:string>
</activiti:field>
</activiti:taskListener>
</extensionElements>
</userTask>
<sequenceFlow id="sequenceFlow2" sourceRef="userTask1" targetRef="userTask2"></sequenceFlow>
<userTask id="userTask2" name="Verifier" activiti:assignee="${initiator.properties.userName}" activiti:formKey="helpdeskworkflow:verifier">
<extensionElements>
<activiti:taskListener event="create" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
<activiti:field name="script">
<activiti:string><![CDATA[
if (typeof bpm_workflowDueDate != 'undefined') task.dueDate = bpm_workflowDueDate;
if (typeof bpm_workflowPriority != 'undefined') task.priority = bpm_workflowPriority;;
]]></activiti:string>
</activiti:field>
</activiti:taskListener>
</extensionElements>
</userTask>
<endEvent id="end"></endEvent>
<sequenceFlow id="sequenceFlow3" sourceRef="userTask2" targetRef="end"></sequenceFlow>
</process>
<bpmndi:BPMNDiagram id="BPMNDiagram_helpDeskWorkFlow">
<bpmndi:BPMNPlane bpmnElement="helpDeskWorkFlow" id="BPMNPlane_helpDeskWorkFlow">
<bpmndi:BPMNShape bpmnElement="start" id="BPMNShape_start">
<omgdc:Bounds height="30.0" width="30.0" x="0.0" y="15.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="userTask2" id="BPMNShape_userTask2">
<omgdc:Bounds height="60.0" width="100.0" x="230.0" y="0.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="end" id="BPMNShape_end">
<omgdc:Bounds height="30.0" width="30.0" x="380.0" y="15.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="userTask1" id="BPMNShape_userTask1">
<omgdc:Bounds height="60.0" width="100.0" x="80.0" y="0.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge bpmnElement="sequenceFlow3" id="BPMNEdge_sequenceFlow3">
<omgdi:waypoint x="330.0" y="30.0"></omgdi:waypoint>
<omgdi:waypoint x="342.0" y="30.0"></omgdi:waypoint>
<omgdi:waypoint x="342.0" y="30.000000000000004"></omgdi:waypoint>
<omgdi:waypoint x="380.0" y="30.000000000000004"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="sequenceFlow1" id="BPMNEdge_sequenceFlow1">
<omgdi:waypoint x="30.0" y="30.0"></omgdi:waypoint>
<omgdi:waypoint x="42.0" y="30.0"></omgdi:waypoint>
<omgdi:waypoint x="42.0" y="30.000000000000007"></omgdi:waypoint>
<omgdi:waypoint x="80.0" y="30.000000000000007"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="sequenceFlow2" id="BPMNEdge_sequenceFlow2">
<omgdi:waypoint x="180.0" y="30.0"></omgdi:waypoint>
<omgdi:waypoint x="192.0" y="30.0"></omgdi:waypoint>
<omgdi:waypoint x="192.0" y="30.000000000000007"></omgdi:waypoint>
<omgdi:waypoint x="230.0" y="30.000000000000007"></omgdi:waypoint>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</definitions>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
<bean parent="workflowDeployer" id="helpDeskWorkFlow.workflowBootstrap">
<property name="models">
<list>
<value>alfresco/extension/helpDeskWorkFlow-model.xml</value>
</list>
</property>
<property name="workflowDefinitions">
<props>
<prop key="engineId">activiti</prop>
<prop key="mimeType">text/xml</prop>
<prop key="location">alfresco/extension/helpDeskWorkFlow.bpmn20.xml</prop>
<prop key="redeploy">true</prop>
</props>
</property>
</bean>
</beans>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<model xmlns="http://www.alfresco.org/model/dictionary/1.0" name="helpdeskworkflow:model">
<imports>
<import prefix="d" uri="http://www.alfresco.org/model/dictionary/1.0'/>
<import prefix="cm" uri="http://www.alfresco.org/model/content/1.0'/>
<import prefix="bpm" uri="http://www.alfresco.org/model/bpm/1.0'/>
</imports>
<namespaces>
<namespace prefix="helpdeskworkflow" uri="http://www.alfresco.org/model/dynamic-workflow/helpdeskworkflow/1.0'/>
</namespaces>
<constraints>
<constraint type="LIST" name="helpdeskworkflow:outcomelist">
<parameter name="allowedValues">
<list>
<value>Resolved</value>
<value>UnResolved</value>
</list>
</parameter>
</constraint>
<constraint type="LIST" name="helpdeskworkflow:outcomelist">
<parameter name="allowedValues">
<list>
<value>Verified</value>
<value>Closed</value>
</list>
</parameter>
</constraint>
</constraints>
<types>
<type name="helpdeskworkflow:resolver">
<parent>bpm:workflowTask</parent>
<mandatory-aspects>
<aspect>helpdeskworkflow:outcome</aspect>
</mandatory-aspects>
</type>
<type name="helpdeskworkflow:verifier">
<parent>bpm:workflowTask</parent>
<overrides>
<property name="bpm:packageActionGroup">
<default>add_package_item_actions</default>
</property>
<property name="bpm:packageItemActionGroup">
<default>edit_and_remove_package_item_actions</default>
</property>
</overrides>
<mandatory-aspects>
<aspect>helpdeskworkflow:resolver</aspect>
<aspect>helpdeskworkflow:outcome</aspect>
</mandatory-aspects>
</type>
<type name="helpdeskworkflow:start">
<parent>bpm:startTask</parent>
<properties>
<property name="helpdeskworkflow:enterdate">
<type>d:datetime</type>
<protected>false</protected>
<mandatory>true</mandatory>
<multiple>false</multiple>
</property>
</properties>
<associations>
<association name="helpdeskworkflow:verifier">
<title>Verifier</title>
<source>
<mandatory>true</mandatory>
<many>false</many>
</source>
<target>
<class>cm:authorityContainer</class>
<mandatory>true</mandatory>
<many>false</many>
</target>
</association>
</associations>
<mandatory-aspects>
<aspect>helpdeskworkflow:resolver</aspect>
</mandatory-aspects>
</type>
</types>
<aspects>
<aspect name="helpdeskworkflow:resolver">
<associations>
<association name="helpdeskworkflow:resolver">
<title>Resolver</title>
<source>
<mandatory>true</mandatory>
<many>false</many>
</source>
<target>
<class>cm:authorityContainer</class>
<mandatory>false</mandatory>
<many>false</many>
</target>
</association>
</associations>
</aspect>
<aspect name="helpdeskworkflow:comment"/>
<aspect name="helpdeskworkflow:outcome">
<properties>
<property name="helpdeskworkflow:outcome">
<type>d:text</type>
<protected>false</protected>
<mandatory>true</mandatory>
<multiple>false</multiple>
<constraints>
<constraint ref="helpdeskworkflow:outcomelist"/>
</constraints>
</property>
</properties>
</aspect>
</aspects>
</model>
04-08-2014 11:21 AM
04-09-2014 01:39 AM
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.