cancel
Showing results for 
Search instead for 
Did you mean: 

Is alfresco error or not?

evan
Champ in-the-making
Champ in-the-making
Hi All,

Based on the example ,I have imitated an advanced workflow which runs through smoothly. Yet there's a problem there: under the " General " section,user can fill out relevant information like Description in frame box at the first step, but when it comes to the second step, there's no any frame box is displayed for the user to fill out nor any information is shown up under this section.The same problem repeats at the following steps. Pls help to resolve this problem.Below are the codes:

helloworld_processdefinition.xml

<?xml version="1.0" encoding="UTF-8"?>
<process-definition xmlns="urn:jbpm.org:jpdl-3.1" name="my:CDC Absence Request Workflow3">
<swimlane name="initiator"/>
<start-state name="start">
  <task name="my:submitHelloworldTask" swimlane="initiator" />
  <transition name="Approve by Boss" to="helloTask">
     </transition>
</start-state>

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

<swimlane name="ericl">
      <assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
        <actor>#{my_t1Assignee}</actor>
      </assignment>
</swimlane>
<task-node name="helloTask">
   <task name="my:helloTask" swimlane="assignee" ></task>
   <transition name="rejected" to="hello"></transition>
   <transition name="approve" to="ltt"></transition>
</task-node>

<swimlane name="getassignee">
      <assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
         <actor>#{my_t2Assignee}</actor>
      </assignment>
</swimlane>
<task-node name="ltt">
   <task name="my:helloEvanTask" swimlane="getassignee" ></task>
   <transition name="approve" to="evanTask"></transition>
   <transition name="rejected" to="hello"></transition>
</task-node>

<task-node name="evanTask">
   <task name="my:evanTask" swimlane="ericl"></task>
  <transition name="rejected" to="hello"/>
  <transition name="approve" to="hello">

</transition>  
</task-node>
<task-node name="hello">
  <task name="my:completedhelloTask" swimlane="initiator"/>
  <transition name="Confirmed" to="end1"/>
</task-node>
<end-state name="end1"/>
</process-definition>

helloworld_model.xml

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

<description>Workflow One Model</description>
<author></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" />
<import uri="http://www.alfresco.org/model/bpm/1.0" prefix="bpm"/>
<import uri="http://www.alfresco.org/model/workflow/1.0" prefix="wf"/>
</imports>

<namespaces>
   <namespace uri="my.model" prefix="my" />
</namespaces>

    
  <types>
     <type name="my:submitHelloworldTask">
        <parent>bpm:startTask</parent>
        <mandatory-aspects>
           <aspect>my:t3Assignee</aspect>
        </mandatory-aspects>
     </type>
   
     <type name="my:helloTask">
        <parent>bpm:workflowTask</parent>
        <mandatory-aspects>          
           <aspect>my:t2Assignee</aspect>
        </mandatory-aspects>
     </type>
    <type name="my:helloEvanTask">
        <parent>bpm:workflowTask</parent>
        <mandatory-aspects>
         <aspect>my:t1Assignee</aspect>
        </mandatory-aspects>
     </type>
    <type name="my:evanTask">
        <parent>bpm:workflowTask</parent>
      
     </type>
     <type name="my:completedhelloTask">
        <parent>bpm:workflowTask</parent>
     </type>  
  </types>
  <aspects>
      <aspect name="my:t3Assignee">
      <associations>
         <association name="my:t3Assignee">
            <source>
               <mandatory>false</mandatory>
               <many>false</many>
            </source>
            <target>
               <class>cm:person</class>
               <mandatory>false</mandatory>
               <many>false</many>
            </target>
         </association>
      </associations>
   </aspect>
  
      <aspect name="my:t1Assignee">
      <associations>
         <association name="my:t1Assignee">
            <source>
               <mandatory>false</mandatory>
               <many>false</many>
            </source>
            <target>
               <class>cm:person</class>
               <mandatory>false</mandatory>
               <many>false</many>
            </target>
         </association>
      </associations>
   </aspect>
   <aspect name="my:t2Assignee">
      <associations>
         <association name="my:t2Assignee">
            <source>
               <mandatory>false</mandatory>
               <many>false</many>
            </source>
            <target>
               <class>cm:person</class>
               <mandatory>false</mandatory>
               <many>false</many>
            </target>
         </association>
      </associations>
   </aspect>
   </aspects>
</model>

web-client-config-custom.xml

<alfresco-config>

<config evaluator="node-type" condition="my:submitHelloworldTask" 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_review_priority" />

         <show-property name="bpm:workflowDueDate" display-label-id="wf_review_due_date" />

         <separator name="sep2" display-label-id="users_and_roles" component-generator="HeaderSeparatorGenerator" />

         <show-association name="my:t3Assignee" display-label-id="wf_reviewer" />
      </property-sheet>

   </config>

   <config evaluator="node-type" condition="my:helloTask" 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_review_priority" />

         <show-property name="bpm:workflowDueDate" display-label-id="wf_review_due_date" />

         <separator name="sep2" display-label-id="users_and_roles" component-generator="HeaderSeparatorGenerator" />

         <show-association name="my:t2Assignee" display-label-id="wf_reviewer" />

      </property-sheet>

   </config>
  
   <config evaluator="node-type" condition="my:helloEvanTask" 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_review_priority" />

         <show-property name="bpm:workflowDueDate" display-label-id="wf_review_due_date" />

         <separator name="sep2" display-label-id="users_and_roles" component-generator="HeaderSeparatorGenerator" />

         <show-association name="my:t1Assignee" display-label-id="wf_reviewer" />

      </property-sheet>

   </config>

   <config evaluator="node-type" condition="my:evanTask" 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_review_priority" />

         <show-property name="bpm:workflowDueDate" display-label-id="wf_review_due_date" />

      </property-sheet>

   </config>
  
   <config evaluator="node-type" condition="my:completedhelloTask" 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_review_priority" />

         <show-property name="bpm:workflowDueDate" display-label-id="wf_review_due_date" />

      </property-sheet>

   </config>
  
</alfresco-config>

Where is wrong?help me PLS.
Thanks.
6 REPLIES 6

evan
Champ in-the-making
Champ in-the-making
Hi All,

Have any idea for me?

Thanks

vinaxwater
Champ in-the-making
Champ in-the-making
Hi friend,
I see to have file model is defined in a new file with name "helloworld_model.xml" but I not see your define in file bootstrap-context.xml
Find that file and check new your define:

<property name="models">
         <list>
               <value>alfresco/workflow/workflowModel.xml</value>
               <value>alfresco/workflow/my_workflowModel.xml</value> << my new define for workflow model
         </list>
      </property>
<property name="labels">
         <list>
            <value>alfresco/workflow/workflow-messages</value>
            <value>alfresco/workflow/my-workflow-messages</value> << my new define for workflow messeges
         </list>
      </property>
build source again.
Good luck!

evan
Champ in-the-making
Champ in-the-making
Hi vinaxwater ,

   Maybe you are right , every time ,I start my tomcat , it is throw exception is no define bootstrap. I want to know where and how can I define bootstrap-context.xml?

thanks.

vinaxwater
Champ in-the-making
Champ in-the-making
Hi friend,
You can find file bootstrap-context.xml with tool develop(Eclipse or Netbean or …).
In file bootstrap-context.xml you must define your file model in 2 tabs <property name="models"> and <property name="labels"> the same code below:

<property name="models">
         <list>
               <value>alfresco/workflow/workflowModel.xml</value>
               <value>alfresco/workflow/my_workflowModel.xml</value> << define your file model for workflow the same this row
               <value>alfresco/workflow/wcmWorkflowModel.xml</value>
         </list>
</property>
<property name="labels">
         <list>
            <value>alfresco/workflow/workflow-messages</value>
            <value>alfresco/workflow/my-workflow-messages</value> << define your file message for workflow the same this row
               <value>alfresco/workflow/wcm-workflow-messages</value>
         </list>
</property>
build again source
Goodluck!

evan
Champ in-the-making
Champ in-the-making
vinaxwater ,
       
          1. what does bootstrap-context.xml for? Could you pls help to introduce? I didn't find any information  related bootstrap-context.xml, why should we must define in this file?
           2. I have define a input box name "EmployeeName" in my workflow , my question is : how can I get "EmployeeName" input value and show in next task? I want "EmployeeName" is read only in second task.

Please help me solve the above problem,thanks again.

evan
Champ in-the-making
Champ in-the-making
Hi All,

        In first , my workflow is save in "Alfresco\tomcat\shared\classes\alfresco\extension\" so I think I don't need define some in bootstrap-context.xml.
now the question is . my workflow can work ,just value can not deliver to every step . I have no idea to do . please help me to get and show vale in each step
code is Upside , warn is below.


16:43:03,748 User:admin WARN  [web.app.ResourceBundleWrapper] Failed to find I18
N message key: my_EmployeeName for locale: en_US
16:43:03,748 User:admin WARN  [web.app.ResourceBundleWrapper] Failed to find I18
N message key: my_EmployeeOracelID for locale: en_US
16:43:03,748 User:admin WARN  [web.app.ResourceBundleWrapper] Failed to find I18
N message key: my_EmployeeDept for locale: en_US
16:43:03,748 User:admin WARN  [web.app.ResourceBundleWrapper] Failed to find I18
N message key: my_EmployeeTitle for locale: en_US
16:43:03,748 User:admin WARN  [web.app.ResourceBundleWrapper] Failed to find I18
N message key: my_AbsenceTime for locale: en_US
16:43:03,748 User:admin WARN  [web.app.ResourceBundleWrapper] Failed to find I18
N message key: my_AbsenceReason for locale: en_US

thanks.