cancel
Showing results for 
Search instead for 
Did you mean: 

deploying a workflow from a jar in workflow console

kaya
Champ in-the-making
Champ in-the-making
Hi,

I have 2 distinct projects : one with my alfresco/extension directory and all, and another one where I put my workflows. I have exported my workflow project to a jar file referenced in alfresco project build path. So when I deploy my war, i can find my jar in it (in the same dir as WEB-INF), so everything seems fine.
But then I want to deploy my workflow from the workflow console, and it can't find the path to my process definition. I've tried several paths to it but alfresco can find none of them. I guess I need to reconfigure my classpath or move my jar to somewhere else …
Has anyone done that with success?

Thanks
2 REPLIES 2

kaya
Champ in-the-making
Champ in-the-making
By the way, I used a separate project for my workflow because I had to make too many arrangements each time I deployed to make it work :

I had an eclipse project with a source folder (at the same level as the WEB-INF folder) and I put my workflows in WEB-INF/classes/alfresco/workflow
but then my .class were generated in my default output folder, and I had to manually copy them to WEB-INF/classes/ to be able to deploy the workflow
When I tried making it my output folder, I lost all alfresco classes after a clean/build with eclipse.
So I wouldn't mind keeping them in the same folder as long as I can deploy without any manipulation

kaya
Champ in-the-making
Champ in-the-making
well, still replying to myself but nevermind …

I solved the problem by putting my jar in the WEB-INF/lib folder and then in the workflow console, I deployed with "NameOfTheWorkflow/processdefinition.xml"