cancel
Showing results for 
Search instead for 
Did you mean: 

how to assign to workflow in a simplest way?

himfire
Champ in-the-making
Champ in-the-making
hello


I'm a student in communication engineer section in my last year my project is about designing a communication system to my college using alfresco and drupal to connect them with each other . my system will be about managing the transition that happened in the college like certificate or something like that . I'm now studing alfresco but I'm very late in this project . first I want to do all the workflows and I'm stuck in an example that I have red in some book showing me how to do my workflow:


<?xml version="1.0" encoding="UTF-8"?>
<process-definition xmlns="urn:jbpm.org:jpdl-3.1" name="wf:myReviewAndApprove">
<swimlane name="initiator" />
<swimlane name="reviewer" />
<start-state name="start">
<task name="wf:mySubmitReviewTask" swimlane="initiator" />
<transition name="" to="review" />
</start-state>
<task-node name="review">
<task name="wf:myReviewTask" swimlane="reviewer" />
<transition name="approve" to="approve" />
<transition name="reject" to="reject" />
</task-node>
<node name="approve">
<transition to="completed" />
</node>
<node name="reject">
<transition to="completed" />
</node>
<task-node name="completed">
<task name="wf:myCompleteReviewTask" swimlane="initiator" />
<transition name="" to="end" />
</task-node>
<end-state name="end" />
</process-definition>

I should see it as it's says when I go to workflow in alfresco explorer . my question is how to execute this code ? where should I place the file so I can see it in my workflow chooses? in simplest way.please
11 REPLIES 11

jpotts
World-Class Innovator
World-Class Innovator
Your process needs to be deployed to the embedded workflow engine within Alfresco. In this case, it is a jBPM process. You should read this tutorial, which discussed how jBPM works and to create and deploy your own custom workflows.

Jeff

himfire
Champ in-the-making
Champ in-the-making
from the book page 25 :


Step 1: Implement the basic flow and workflow user interface
Layout the process
I'm going to follow the “extension” convention and place my workflow in a file called
processdefinition.xml in a folder called “alfresco/extension/workflows/publish­whitepaper”



I don't have this directory on my alfresco I have search for it and I didn't found it. on the extension I just have these folders (audio,bootstrap,mt) I'm using alfresco 4.0d community edition on ubuntu 10.04. how can I solve this problem?

sokolko
Champ in-the-making
Champ in-the-making
Hello.
Try placing your process definition to /Company Home/Data Dictionary/Workflow Definitions

himfire
Champ in-the-making
Champ in-the-making
thanks for the reply .


I went to this directory but I saw it empty and I didn't know what to do can you show me the steps ?



——————————————————————————————————————————————————————
e-mail:himfire@rocketmail.com

jpotts
World-Class Innovator
World-Class Innovator
himfire,

The files that get created during the tutorial are being placed in an Eclipse project. The project has its own folder structure. An Ant build is then used to package up and deploy the extensions into the expanded Alfresco webapp.

Out-of-the-box, your exploded Alfresco webapp (if you ran the binary installer, the webapp lives in /opt/alfresco/tomcat/webapp/alfresco) will not contain the extension folder. It will get created when you run "ant deploy".

Jeff

himfire
Champ in-the-making
Champ in-the-making
thanks for the reply dear jeff


good . how do I ant and deploy as you said in your post?should I install jbpm and ant ( built.xml )? please in steps?I need to begin my work?



thanks again dear jeff for all what you are doing . because of your help I have understood much better than before . so thank you very much. but I need a little help to get more ideas . thanks any how.

mohammed_amr
Champ in-the-making
Champ in-the-making
Good,

I hope that can help you, Alfresco Workflow Definition have multiple ways of deployment one of them is by using the ant.
But i don't think that you are need it to make a deployment rather than you can use the Workflow Console to deploy the Workflow definition.
If you are going to deploy yours by using the Workflow Console, this link will guide you http://wiki.alfresco.com/wiki/Workflow_Console.

Thanks.
Mohammed Amr.
Senior System Developer

himfire
Champ in-the-making
Champ in-the-making
thanks for the reply my friend


I've tried to do what you have said to me but an error has occur to me , I red in the book there is a dynamic way to install my workflow in some folder location called workflow but I haven't found this directory at all in my workflow , the book says that when you place it in this location you should have to see it when you restart the alfresco workflow as a choice . this what I want to know right now . then I will start do my workflow . can you help me?


I'm using alfresco 4.0d community edition on ubuntu 10.04



———————————————————–
e-mail:hishamfire@gmail.com
skype:hishamfire
yahoo:himfire@rocketmail.com
twitter:himfire00

sokolko
Champ in-the-making
Champ in-the-making
Just type "workflow" in the right corner of your alfresco web UI (I mean alfresco, not share) and click on the magnifier) You'll see the folder called "Workflow definitions". This is the place