cancel
Showing results for 
Search instead for 
Did you mean: 

Can't deploy my first custom workflow, can anybody helps?

paolo26670
Champ in-the-making
Champ in-the-making
Hi everybody

I'm trying to deploy to alfresco my first workflow but I cannot reach the goal!

I'm using Eclipse

I've tried to reproduce the tutorial recorded at Alfresco Summit 2013 (http://summit.alfresco.com/boston/sessions/boost-your-productivity-next-gen-bpm-tooling)

I do everything the programmer do in the tutorial, the Form is ok (see image2) , then I deploy with CMIS to my alfresco with no error (see image1) , then I enter Alfresco, start a new Workflow on a document, the Workflow name is in the list (image1) but when the start form shows.. the result is not what I was expecting, the fields I designed in Eclipse are not in the Alfresco form..

The form displayed is a mix between the form I designed and a standard workflow form.. (see image2)

Can somebody help me?

thanks in advance!

Paolo
5 REPLIES 5

mitpatoliya
Star Collaborator
Star Collaborator
You need to configure start task related config in your share-config-custom.xml
then only that form will be visible.

Hi,

Before I spent all the night looking for the way out, can you please give me some more hints? I've studied all share-config-custom.xml finding no option to configure start task..

Can you help me more?

P

arak
Confirmed Champ
Confirmed Champ
Hi Paolo,

In your share-config-custom.xml file, add or find (if exist) sometime like this:


    <config evaluator="task-type" condition="YOU CONTENT TYPE NAME OF START TASK (i.e.: wf:startTask)">
      <forms>
         <form>
            <field-visibility>
               <show id="bpm:workflowDescription" />
               <show id="packageItems" />
               <show id="transitions" />
               <show id="bpm:status" />
               <!– And all your fields which you wish see –>
            </field-visibility>
            <appearance>
               <!– And the appearance of the above fields. –>
               <set id="" appearance="title" label-id="workflow.set.general" />
               <set id="items" appearance="title" label-id="workflow.set.items" />
               <set id="progress" appearance="title" label-id="workflow.set.task.progress" />
              
               <field id="bpm:workflowDescription" label-id="workflow.field.message"/>
               <field id="packageItems" set="items" />
               <field id="bpm:status" set="progress" />
            </appearance>
         </form>
      </forms>
    </config>


According to what I see, you use a tool for design your forms. Then, I don't know if the above code is applicable to your method. If you can and whish, you can send me your share-config-custom.xml and I can see the code.

Other option is follow other tutorial without a tool for design forms. I recommend this tutorial: http://ecmarchitect.com/alfresco-developer-series-tutorials/workflow/tutorial/tutorial.html, worked for me.

Greetings,
Pablo Vásquez.

stacy
Champ on-the-rise
Champ on-the-rise
Hi,

Can we use share-workflow-form-config.xml here ??

darkredd
Star Contributor
Star Contributor
Hi Stacy,

It is never a good idea to fiddle with alfresco OOTB files as they might change on newer version thereby overriding your changes if you upgrade. It is highly recommended that you build your own custom files, or use those in the shared folder.