cancel
Showing results for 
Search instead for 
Did you mean: 

HOW to starting advanced Workflow to a custom content

nabilblk
Champ in-the-making
Champ in-the-making
In my content Model i define many custom content .

My need is on some of this custom content , i start an advanced Workflow .

In only some content , that's mean , i can't start this same advanced Workflow on the other custom content.

I model my workflow with JPDL, and deploy it in alfresco .

But the workflow is showing for all content .

How can i do this restriction ???

Thanks
2 REPLIES 2

iblanco
Confirmed Champ
Confirmed Champ
I don't know how to do it, take in mind that a workflow package could contain more than one file/content so the problem is no so trivial.

I suppose that you could check the content subtype in the starting node and just cancel the workflow if it does not meet the requirements.

Bye.

jayjayecl
Confirmed Champ
Confirmed Champ
you should override the method getAvailableWorkflows in class StartWorkflowWizard in order to customize the list of advanced workflow displayed on step 1 of this wizard