BaseWorkflow.xml

cancel
Showing results for 
Search instead for 
Did you mean: 

BaseWorkflow.xml

resplin
Intermediate
0 0 2,367

Obsolete Pages{{Obsolete}}

The official documentation is at: http://docs.alfresco.com



Workflow

back to Workflow.




<model name='bpm:businessprocessmodel' xmlns='http://www.alfresco.org/model/dictionary/1.0'>

    <description>Business Process Model</description>
    <author>Alfresco</author>
    <version>1.0</version>

    <imports>
        <import uri='http://www.alfresco.org/model/dictionary/1.0' prefix='d' />
        <import uri='http://www.alfresco.org/model/content/1.0' prefix='cm' />
    </imports>

    <namespaces>
        <namespace uri='http://www.alfresco.org/model/bpm/1.0' prefix='bpm' />
    </namespaces>

    <constraints>

        <constraint name='bpm:allowedPriority' type='LIST'>
            <parameter name='allowedValues'>
                <list>
                    <value>1</value>
                    <value>2</value>
                    <value>3</value>
                </list>
            </parameter>
        </constraint>

        <constraint name='bpm:allowedStatus' type='LIST'>
            <parameter name='allowedValues'>
                <list>
                    <value>Not Yet Started</value>
                    <value>In Progress</value>
                    <value>On Hold</value>
                    <value>Cancelled</value>
                    <value>Completed</value>
                </list>
            </parameter>
        </constraint>

        <constraint name='bpm:percentage' type='MINMAX'>
            <parameter name='minValue'>
                <value>0</value>
            </parameter>
            <parameter name='maxValue'>
                <value>100</value>
            </parameter>
        </constraint>

    </constraints>

    <types>




        <type name='bpm:task'>
            <parent>cm:content</parent>

            <properties>







                <property name='bpm:taskId'>
                    <type>d:long</type>
                    <protected>true</protected>
                    <mandatory>true</mandatory>
                </property>

                <property name='bpm:description'>
                    <type>d:text</type>
                </property>



                <property name='bpm:startDate'>
                    <type>d:date</type>
                    <protected>true</protected>
                </property>
                <property name='bpm:completionDate'>
                    <type>d:date</type>
                    <protected>true</protected>
                </property>
                <property name='bpm:dueDate'>
                    <type>d:date</type>
                </property>



                <property name='bpm:status'>
                    <type>d:text</type>
                    <mandatory>true</mandatory>
                    <default>Not Yet Started</default>
                    <constraints>
                        <constraint ref='bpm:allowedStatus' />
                    </constraints>
                </property>
                <property name='bpm:priority'>
                    <type>d:int</type>
                    <mandatory>true</mandatory>
                    <default>2</default>
                    <constraints>
                        <constraint ref='bpm:allowedPriority' />
                    </constraints>
                </property>
                <property name='bpm:percentComplete'>
                    <type>d:int</type>
                    <mandatory>true</mandatory>
                    <default>0</default>
                    <constraints>
                        <constraint ref='bpm:percentage' />
                    </constraints>
                </property>





            </properties>

            <associations>

                <association name='bpm:pooledActors'>
                    <source>
                        <mandatory>false</mandatory>
                        <many>false</many>
                    </source>
                    <target>
                        <class>cm:person</class>
                        <mandatory>false</mandatory>
                        <many>true</many>
                    </target>
                </association>

            </associations>

            <mandatory-aspects>
                <aspect>cm:ownable</aspect>
            </mandatory-aspects>
        </type>





        <type name='bpm:workflowTask'>
            <parent>bpm:task</parent>

            <properties>


                <property name='bpm:context'>
                    <type>d:noderef</type>
                </property>

                <property name='bpm:outcome'>
                    <type>d:text</type>
                </property>

                <property name='bpm:completedItems'>
                    <type>d:noderef</type>
                    <multiple>true</multiple>
                </property>

                <property name='bpm:packageActionGroup'>
                    <type>d:text</type>
                </property>

                <property name='bpm:packageItemActionGroup'>
                    <type>d:text</type>
                    <default>workflow_item_read_actions</default>
                </property>

            </properties>

            <associations>

                <association name='bpm:package'>
                    <source>
                        <mandatory>false</mandatory>
                        <many>false</many>
                    </source>
                    <target>
                        <class>bpm:workflowPackage</class>
                        <mandatory>true</mandatory>
                        <many>false</many>
                    </target>
                </association>

            </associations>

        </type>





        <type name='bpm:startTask'>
            <parent>bpm:workflowTask</parent>

            <properties>

                <property name='bpm:workflowDescription'>
                    <type>d:text</type>
                </property>

                <property name='bpm:workflowDueDate'>
                    <type>d:date</type>
                </property>

                <property name='bpm:workflowPriority'>
                    <type>d:int</type>
                    <default>2</default>
                    <constraints>
                        <constraint ref='bpm:allowedPriority' />
                    </constraints>
                </property>

            </properties>

            <associations>

                <association name='bpm:assignee'>
                    <source>
                        <mandatory>false</mandatory>
                        <many>false</many>
                    </source>
                    <target>
                        <class>cm:person</class>
                        <mandatory>true</mandatory>
                        <many>false</many>
                    </target>
                </association>

            </associations>

            <overrides>

                <property name='bpm:packageActionGroup'>
                    <default>workflow_collection_actions</default>
                </property>

                <property name='bpm:packageItemActionGroup'>
                    <default>workflow_item_collection_actions</default>
                </property>

            </overrides>

        </type>

    </types>

    <aspects>







        <aspect name='bpm:workflowPackage'>
            <properties>

                <property name='bpm:isSystemPackage'>
                    <type>d:boolean</type>
                </property>



                <property name='bpm:workflowDefinitionId'>
                    <type>d:text</type>
                </property>
                <property name='bpm:workflowDefinitionName'>
                    <type>d:text</type>
                </property>
                <property name='bpm:workflowInstanceId'>
                    <type>d:text</type>
                </property>



            </properties>






        </aspect>

    </aspects>

</model>