cancel
Showing results for 
Search instead for 
Did you mean: 

Start task Form

cool123
Champ in-the-making
Champ in-the-making
I want to Modify the start task form in workflow ..Tell me about the number of files that i required to modify and all the Location where i have to put the files.


I want to remove the "Locale " attribute.


The alfresco version i am using is Alfresco-Enterprise 4.0.
10 REPLIES 10

jpotts
World-Class Innovator
World-Class Innovator

cool123
Champ in-the-making
Champ in-the-making
Finally i am able to remove the "locale" attribute…
Thanks sir

How do you achieve this pls?

cool123
Champ in-the-making
Champ in-the-making
When i am adding my model attributes in the form,then "Locale" property is again displayed on the form.
So anyone can suggest me how to make a workflow,so that "Locale" property is not displayed.

Thanks in Advance.

jpotts
World-Class Innovator
World-Class Innovator
Please post your workflow model, your process, and your Share form configuration.

Jeff

cool123
Champ in-the-making
Champ in-the-making
i am uploading all the files,
plzz tell me where i have to put the files with the path and tell me my errors.
Thanks in Advance sir

cool123
Champ in-the-making
Champ in-the-making
Sir, I am making the workflow in ecllipse by using latest activiti plugin.
and making the forms by kickstart form.
and i have five files…All the five files i am uploading here,please check the code in files and tell me where i have to put the files,tell me the do folder name.

—————————————————————–
1. helpDeskWorkFlow-config-custom.xml
—————————————————————–

<?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>


—————————————————————–
2. helpDeskWorkFlow-module-deployment.xml
—————————————————————–

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<module-deployment>
    <extension-module>kickstart_form_helpdeskworkflow</extension-module>
</module-deployment>


—————————————————————–
3. helpDeskWorkFlow-share-context.xml
—————————————————————–

<?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>


—————————————————————–
4. helpDeskWork.bpmn20.xml
—————————————————————–

<?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>


—————————————————————–
5. helpDeskWorkFlow-context.xml
—————————————————————–

<?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>


—————————————————————–
6. helpDeskWorkFlow-mode.xml
—————————————————————–

<?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>

———————————————————
These are the six files that are generated and tell me the error and where i have to put the files,thanks in advance sir

jpotts
World-Class Innovator
World-Class Innovator
Everything appears to be correct. But I don't know why you have file #3. Most people would name file #1 "share-config-custom.xml" instead of "helpDeskWorkFlow-config-custom.xml". If you do that, and place share-config-custom.xml in your alfresco/web-extension directory or in META-INF inside a JAR that goes in WEB-INF/lib you will not need file #3.

Because your form configuration does not seem to be read, maybe you should try what I've described above and see if it resolves the issue.

Jeff

cool123
Champ in-the-making
Champ in-the-making
Sir, i am making custom workflow in Alfresco enterprise,Can you tell me how i make files ,so i did not get the locale attribute.
———————————————
1. share-config-custom.xml path:// alfresco/webextension/share-config-custom.xml
2. bpmn20.xml // by deploy workflow console
3. model file // in the extension folder
————————————————

Then i am not getting the customized start task form,tell me now how i have to make the form.