cancel
Showing results for 
Search instead for 
Did you mean: 

'Uploading' a workflow...

gpeter
Champ in-the-making
Champ in-the-making
Hi everybody,
I'm starting to dig into Alfresco Community 4.2.c, this is my very first post and I installed the bin file into a Centos server 3 days ago, so i have little to nothing knowledge about it. Also please notice together with the Community edition I installed Eclipse with the Activity Designer for the first time, so consider me a newbie also in the development field.
I've already read Jeff's Advanced Workflow and also Joanna's step by step guides and there is still something that i don't get.
Deploying a workflow means more or less tell activity where the XML is so that it can start to do it's business. It can be done via "Spring" (which is something that i guess i'll have to learn) or via the workflow console.
Usually the .xml BMPN file should be in  alfresco/WebContent/WEB-INF/classes/alfresco/workflow/ .
My question is: once i have prepared my process in eclipse how do i place the file in that directory on the remote server so that i can deploy it?
Am I missing a button in Eclipse or this is just something that the programmer should take care of?
Maybe this is an obvious question but please consider that i'm beginner also as a programmer.
1 REPLY 1

gpeter
Champ in-the-making
Champ in-the-making
Ok i have made some homeworks and now i have a handy ant build.xml file that scp a helloworld.bpmn file to the alfresco/workflow directory and a someco-workflow-context.xml parent directory alfresco/  [the intire path is [font=Courier]/opt/alfresco-4.2.c/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/[/font] ]
both file content are a copy and paste from the jpotts advanced guide with the correct path, here is the detail of the context.xml file:
 <bean id="someco.workflowBootstrap" parent="workflowDeployer">
<property name="workflowDefinitions">
<list>
   <props>
      <prop key="engineId">activiti</prop>
      <prop key="location">alfresco/workflow/helloworld.bpmn</prop>
      <prop key="mimetype">text/xml</prop>
      <prop key="redeploy">false</prop>
   </props>

</list>
</property>
</bean>

but the workflow does not get deployed automatically, it is there since i  can manually deploy it via the workflow console using 
deploy activiti alfresco/workflow/helloworld.bpmn
.
What am I missing?
I thought that the deployment of a such an easy workflow with the context file would work something like deploying a .jar in tomcat, you upload it and he handles it. Isn't it?