cancel
Showing results for 
Search instead for 
Did you mean: 

Find the error

buurd
Champ in-the-making
Champ in-the-making
Hi!

I have a workflow where I seem to have introduced a problem. I have staired at files for a couple of hours now but doesn't seem to come any closer to a solution.

The problem is that when I try to start the workflow the GUI doesn't get changed to reflect what I belive I have setup. Can you spot any errors that would stop Alfresco from recognizing either the model or webclient-settings?

I have only attemted to add the GUI for the start-state so far. I have restarted, looked in the Workflow-console and repository-console and webclient-console to verify that the files are recognized and doesn't contain any errors as far they can see but still there are no GUI when I try to start the workflow.

Thanks in advance
Roland


—————- Process definition ——————————

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

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

   <swimlane name="initiator" />
   <swimlane name="MoP_VC">
      <assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
         <pooledactors>#{bmp_assignee}</pooledactors>
      </assignment>
   </swimlane>
   
   <swimlane name="MoP_Arbetsledare">
      <assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
         <pooledactors>#{bmp_assignee}</pooledactors>
      </assignment>
   </swimlane>

   <start-state name="start-state1">
      <task name="s:paborjaUppgift" swimlane="initiator" />
      <transition to="Arbetsledarval"></transition>
   </start-state>


   <task-node name="Arbetsledarval">
      <task name="s:arbetsledarval" swimlane="MoP_VC" />
      <transition to="UppgiftSkickad"></transition>
   </task-node>

   <task-node name="UppgiftSkickad">
      <task name="s:uppgiftSkickad" swimlane="MoP_Arbetsledare" />
      <transition to="DokumentationMottagen"></transition>
   </task-node>

   <task-node name="DokumentationMottagen">
      <task name="s:dokumentationMottagen" swimlane="MoP_Arbetsledare" />
      <transition to="UtförandeKontrollerat"></transition>
   </task-node>

   <task-node name="UtförandeKontrollerat">
      <task name="s:utforandeKontrollerat" swimlane="MoP_VC" />
      <transition to="end-state1"></transition>
   </task-node>

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


</process-definition>


————— The model —————————————————-

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

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

   <description>Slamsugning</description>
   <author>Roland</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/bpm/1.0" prefix="bpm" />
   </imports>

   <namespaces>
      <namespace uri="http://www.jonkoping.se/model/workflow/Slamsugning/1.0"
         prefix="s" />
   </namespaces>

   <types>
      <!–  RootProjectSpace, custom type holding ProjectSpaces –>
      <type name="s:paborjaUppgift">
         <title>Påbörja uppgift</title>
         <parent>bpm:startTask</parent>
         <properties>
            <property name="s:lokal">
               <title>Lokal</title>
               <type>d:text</type>
            </property>
         </properties>
         <mandatory-aspects>
            <aspect>bpm:assignee</aspect>
         </mandatory-aspects>
      </type>
      <type name="s:arbetsledarval">
         <title>Arbetsledarval</title>
         <parent>bpm:workflowTask</parent>
      </type>
      <type name="s:uppgiftSkickad">
         <title>Uppgift skickad</title>
         <parent>bpm:workflowTask</parent>
      </type>
      <type name="s:dokumentationMottagen">
         <title>Dokumentation mottagen</title>
         <parent>bpm:workflowTask</parent>
      </type>
      <type name="s:utforandeKontrollerat">
         <title>Dokumentation mottagen</title>
         <parent>bpm:workflowTask</parent>
      </type>
   </types>
</model>

—————- web-client-custom ——————————–

<?xml version="1.0" encoding="UTF-8"?>
<config evaluator="node-type" condition="s:paborjaUppgift" replace="true">
   <property-sheet>
      <show-property name="s:lokal" display-label="Lokal" />
      <show-association name="bpm:assignee" display-label="Nästa person" />
   </property-sheet>
</config>
2 REPLIES 2

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
try to name your model :
alfresco/extension/exampleModel.xml

and change name of example-model-context.xml.sample to example-model-context.xml should to it.

if this works then you can fix your problem a in some fancy way .

buurd
Champ in-the-making
Champ in-the-making
Hi!

I found the error. The example I was following hade removed the root-node of the webclient.xml. Unfortunally Alfresco didn't complain about the bad xml…

Thanks

Roland
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.