AnsweredAssumed Answered

Advanced Workflow picking up wrong startTask metadata

Question asked by pmahoney on Jan 6, 2009
Latest reply on Jan 15, 2009 by pmahoney
I've been working through the Alfresco Developers Guide and have come unstuck in chaper 7 "Step-by-Step: Grabbing the Hello World Argument from the User"

This is where an Advances Workflow is set up with a start task configured to require a mandatory user name be entered through the UI. I have follwed the steps, just changing the namespace from scwf: to xactwf: and see no errors when deploying or opening the workflow. But when I try to run the workflow, the "Workflow Options" (Step 2) shows the workflow metadata for another workflow (Site Invite I think) and not mine.  :(  I've being stdying my config files all day and trying out ideas, but nothing works.

Can the team help?


<?xml version="1.0" encoding="UTF-8"?>
<!– Definition of new Model –>
<model name="xactwf:xactWorkflowModel"

   <!– Optional meta-data about the model –>
   <description>X-Act Workflow Model</description>
   <author>Paul Mahoney</author>

   <!– Imports are required to allow references to definitions in other models –>
      <import uri="" prefix="d" />
      <import uri="" prefix="bpm" />

   <!– Introduction of new namespaces defined by this model –>
      <namespace uri="" prefix="xactwf" />

      <type name="xactwf:submitHelloWorldTask">
            <property name="xactwf:helloName">


<?xml version='1.0' encoding='UTF-8'?>

    <!– Registration of new models –>
    <bean id="extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
        <property name="models">

    <!– Registration of resource bundles –>
    <bean id="extension.workflowBootstrap" parent="workflowDeployer">
        <property name="labels">


<?xml version="1.0" encoding="UTF-8"?>
<process-definition xmlns="" name="xactwf:helloWorldUI">
   <start-state name="start">
      <task name="xactwf:submitHelloWorldTask"></task>
      <transition name="" to="hello"></transition>
   <node name="hello">
      <transition name="" to="end1">
         <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
               <variable name="xactwf_helloName" access="read"/>
                  logger.log("Hello, " +  xactwf_helloName + "!");
   <end-state name="end1"></end-state>