AnsweredAssumed Answered

A system error happened during the operation: 08090128 Manda

Question asked by piousbox on Sep 9, 2010
I get the following error on the start node:


Please correct the errors below then click OK.

    * A system error happened during the operation: 08090128 Mandatory task properties have not been provided!

model
<?xml version="1.0" encoding="UTF-8"?>

<model name="ee:editorialModel2" xmlns="http://www.alfresco.org/model/dictionary/1.0">

    <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"/>
        <import uri="http://www.alfresco.org/model/content/1.0" prefix="cm" />
    </imports>

    <namespaces>
        <namespace uri="http://mediatecpub.com/namespaces/editorial/0.2" prefix="ee"/>
    </namespaces>
    
    <types>
   
        <type name="ee:editorAssignsAuthors">
            <parent>bpm:startTask</parent>
      <properties>
            <property name="ee:notifyMe">
               <type>d:boolean</type>
               <default>false</default>
            </property>
      </properties>
            <mandatory-aspects>
                <aspect>ee:author</aspect>
                <aspect>ee:copyeditor</aspect>
                <aspect>ee:editor</aspect>
            </mandatory-aspects>
        </type>

        <type name="ee:authorDevelops">
            <parent>bpm:workflowTask</parent>
        </type>

        <type name="ee:editorEdits">
            <parent>bpm:workflowTask</parent>
        </type>

        <type name="ee:editorApproves">
            <parent>bpm:workflowTask</parent>
        </type>

        <type name="ee:copyeditorEdits">
            <parent>bpm:workflowTask</parent>
        </type>

        <type name="ee:copyeditorApproves">
            <parent>bpm:workflowTask</parent>
        </type>

        <type name="ee:editorEdits2">
            <parent>bpm:workflowTask</parent>
        </type>
    </types>
    <aspects>
       
        <aspect name="ee:author">
            <associations>
                <association name="ee:author">
                    <source>
                        <mandatory>false</mandatory>
                        <many>false</many>
                    </source>
                    <target>
                        <class>cm:person</class>
                        <mandatory>true</mandatory>
                        <many>false</many>
                    </target>
                </association>
            </associations>
        </aspect>

        <aspect name="ee:editor">
            <associations>
                <association name="ee:editor">
                    <source>
                        <mandatory>false</mandatory>
                        <many>false</many>
                    </source>
                    <target>
                        <class>cm:person</class>
                        <mandatory>true</mandatory>
                        <many>false</many>
                    </target>
                </association>
            </associations>
        </aspect>

        <aspect name="ee:copyeditor">
            <associations>
                <association name="ee:copyeditor">
                    <source>
                        <mandatory>false</mandatory>
                        <many>false</many>
                    </source>
                    <target>
                        <class>cm:person</class>
                        <mandatory>true</mandatory>
                        <many>false</many>
                    </target>
                </association>
            </associations>
        </aspect>
    </aspects>
</model>

processdefinition
<?xml version="1.0" encoding="UTF-8"?><!– xmlns="urn:jbpm.org:jpdl-3.1" –>
<process-definition xmlns="http://mediatecpub.com/namespaces/editorial/1.0" name="ee:procdef">

   <swimlane name="initiator" />

   <swimlane name="editor">
      <assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
         <actor>#{people.getGroup('GROUP_editors')}</actor>
         <!–actor>#{bpm_assignee}</actor–>
      </assignment>
   </swimlane> <!– there is no editor, there is an initiator? –>

   <swimlane name="author">
      <assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
         <!–actor>#{people.getGroup('GROUP_authors')}</actor–>
         <actor>#{ee_author}</actor>
      </assignment>
   </swimlane>

   <swimlane name="copyeditor">
      <assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
    <!–actor>#{ed_copyeditor}</actor–>
    <actor>#{ee_copyeditor}</actor>
      </assignment>
   </swimlane>

   <swimlane name="assignee">
      <assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
    <actor>#{bpm:assignee}</actor>
      </assignment>
   </swimlane>

   <start-state name="start">
      <task name="ee:editorAssignsAuthors" swimlane="initiator">
      </task>
   <event type="task-end">
             <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
                <script>
                   <variable name="ee_author" access="write"/>
                   <expression>
                      if (taskInstance.actorId == undefined)
                         person;
                      else
                         people.getPerson(taskInstance.actorId);
                   </expression>
                </script>
             </action>
          </event>
      <transition name="tr0" to="n1" />
   </start-state>

    <task-node name="n1">
        <task name="ee:authorDevelops" swimlane="author">
        </task>
        <transition to="n2" name="tr1" />
    </task-node>

    <task-node name="n2">
        <task name="ee:editorEdits" swimlane="editor">
        </task>
        <transition to="n3" name="" />
    </task-node>

    <task-node name="n3">
        <task name="ee:editorApproves" swimlane="editor">
        </task>
        <transition to="n1" name="rejected" />
        <transition to="n4" name="approved" />
    </task-node>

    <task-node name="n4">
        <task name="ee:copyeditorEdits" swimlane="copyeditor">
        </task>
        <transition to="n5" name="" />
    </task-node>

    <task-node name="n5">
        <task name="ee:copyeditorApproves" swimlane="copyeditor">
        </task>
        <transition to="n7" name="rejected" />
        <transition to="n6" name="approved" />
    </task-node>

    <task-node name="n7">
        <task name="ee:editorEdits2" swimlane="editor">
        </task>
        <transition to="n4" name="">
      <!–action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
           <script>
              if (true)
              {
                 ;
              }
           </script>
         </action–>
   </transition>
    </task-node>

    <end-state name="n6" />

</process-definition>

web-client-config-custom.xml
    <config evaluator="node-type" condition="ee:editorAssignsAuthors" replace="true">
        <property-sheet>
            <separator name="sep1" display-label-id="general" component-generator="HeaderSeparatorGenerator" />
      <show-property name="bpm:workflowDescription" component-generator="TextAreaGenerator" />
            <show-property name="bpm:workflowPriority" display-label-id="wf_adhoc_priority" />
            <show-property name="bpm:workflowDueDate" display-label-id="wf_adhoc_due_date" />
      <show-property name="ee:notifyMe" />

            <separator name="sep2" display-label-id="users_and_roles" component-generator="HeaderSeparatorGenerator" />
               <show-association name="ee:editor" display-label-id="assign_editor" />
               <show-association name="ee:author" display-label-id="assign_author" />
           <show-association name="ee:copyeditor" display-label-id="assign_copyeditor" />
        </property-sheet>
    </config>

editorial.properties
ed_editorialProcessDefinition.workflow.title=Editorial Review & Approve
ed_editorialProcessDefinition.workflow.description=Have Author->Editor->Copyeditor pipeline that terminates in some form of deployment

ed_editorialModel.type.ed_editor_assigns_authors.title=Editor Assign Authors and Copyeditors
ed_editorialModel.type.ed_editor_assigns_authors.description=Editor Assign Authors and Copyeditors descr

ed_editorialModel.type.ed_author_develops.title=Author Developrs
ed_editorialModel.type.ed_author_develops.description=Author Develops descr

ed_editorialModel.type.ed_editor_edits.title=Editor Edits
ed_editorialModel.type.ed_editor_edits.description=Editor Edits descr

ed_editorialModel.type.ed_editor_edits2.title=Editor Edits2
ed_editorialModel.type.ed_editor_edits2.description=Editor Edits descr2

ed_editorialModel.type.ed_copyeditor_edits.title=copyEditor Edits
ed_editorialModel.type.ed_copyeditor_edits.description=copyEditor Edits descr

ed_editorialModel.type.ed_editor_approves.title=Editor Approves
ed_editorialModel.type.ed_editor_approves.description=Editor Approves descr

ed_editorialModel.type.ed_copyeditor_approves.title=copyEditor Approves
ed_editorialModel.type.ed_copyeditor_approves.description=copyEditor Approves descr

ed_editorialModel.property.ed_comment.title=Comment
ed_editorialModel.property.ed_comment.description=Comment, comment!

wfag_adhocgroupworkflowmodel.property.wfag_comment.title=Dumb comment
wfag_adhocgroupworkflowmodel.property.wfag_comment.description=Dumb, dumb comment

ee_procdef.workflow.title=Title
ee_procdef.workflow.description=descr

thanks in advance for help.

Outcomes