cancel
Showing results for 
Search instead for 
Did you mean: 

hello example, can't get it to work

xtine
Champ in-the-making
Champ in-the-making
I created a workflow, similar to the hello example in the book and in the wiki. It's the one where the user is supposed to type their name, which then gets logged. Can't get it to work though. The workflow does show me a tex entry box, but the title is "Owner:" rather than the title I specified, and input is blocked. When I press next, I get an error:
Please correct the errors below then click Finish.
    * A system error happened during the operation: 07270001 Mandatory task properties have not been provided!

This is my processdefinition.xml
<?xml version="1.0" encoding="UTF-8"?>

<process-definition  xmlns="urn:jbpm.org:jpdl-3.1"  name="bidnwf:helloAssessor">

   <start-state name="start">
        <task name="bidnwf:helloAssessorTask" >
        </task>
        <transition name="getSmart" to="helloStart">
             <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
           <script>
            <variable name="bidnwf_helloText" access="read" />
              <expression>
                logger.log("Hello, text is " + bidnwf_helloText);
              </expression>
            </script>
          </action>
        </transition>
   </start-state>

  <node name="helloStart">
    <transition to="selectAssessor">
     </transition>
  </node>
 
    <fork name="selectAssessor">
    <transition to="otherHello" name="to otherHello"></transition>
    <transition to="hello" name="to hello"></transition>
  </fork>
 
  <task-node name="hello">
       <task name="bidnwf:anotherAdHocTask" />
   <transition to="reportBack"></transition>
  </task-node>

  <task-node name="otherHello">
       <task name="bidnwf:adHocTask" />
       <transition to="reportBack"></transition>
  </task-node>

  <join name="reportBack">
    <transition to="end-state1"></transition>
  </join>

    <end-state name="end-state1">
    </end-state>

</process-definition>

This is the workflowmodel xml
<?xml version="1.0" encoding="UTF-8"?>

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

   <!– Optional meta-data about the model –>
   <description>BiD Network Workflow Model</description>
   <author>Christine</author>
   <version>1.0</version>

   <!– Imports are required to allow references to definitions in other models –>
   <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" />
   </imports>

   <namespaces>
      <namespace uri="http://www.bidnetwork.org/model/workflow/1.0" prefix="bidnwf"/>
   </namespaces>

   <types>

      <type name="bidnwf:helloAssessorTask">
        <parent>bpm:startTask</parent>
        <properties>
          <property name="bidnwf:helloText">
            <type>d:text</type>
            <mandatory>true</mandatory>
            <multiple>false</multiple>
          </property>
        </properties>
      </type>
     
    <type name="bidnwf:adhocTask">
        <parent>bpm:workflowTask</parent>
     </type>

     <type name="bidnwf:anotherAdhocTask">
        <parent>bpm:workflowTask</parent>
     </type>
    
   <type name="bidnwf:endTask">
        <parent>bpm:workflowTask</parent>
     </type>
  </types>

</model>

The workflow shows up in the workflow console, it also shows up in the Advanced workflow menu, I can start it, but as I said, I can't enter the required property.
I'm sure I'm missing something, or even it's a simple mistake, but right now, I'm stuck…..
1 REPLY 1

xtine
Champ in-the-making
Champ in-the-making
I have now modified the web-client-config-custom.xml, which helps, but I still don't get the results that I expected. Where do I find good info on how to set up all xml files? The book seems to skip some steps.