cancel
Showing results for 
Search instead for 
Did you mean: 

Customizing the rule in alfresco thru script

irene08
Champ in-the-making
Champ in-the-making
Good Day!
Is there any way that you could help me in customizing the rule in alfresco thru script? The scenario is this.. 'If the author change the status to completed, tagged file as approval'.


In Manage Rule, I created new rule and Define Rule…. WHEN— Items are updated
                                                                                 IF ALL CRITERIA ARE MET— Status equals completed
                                                                                 PERFORM ACTION— Link to Categoy 'Approval'

But it doesn't work. So I think I should customize it thru script.


Thank you,
Irene
8 REPLIES 8

billerby
Champ on-the-rise
Champ on-the-rise
Could you please clarify which status property the rule should fire on. bpm:status? pubSmiley TongueublishingEventStatus?

There are a few.

Thanks
/Erik

irene08
Champ in-the-making
Champ in-the-making
Could you please clarify which status property the rule should fire on. bpm:status? pubSmiley TongueublishingEventStatus?

There are a few.

Thanks
/Erik


If I'm not mistaken, the dl:taskStatus or the bpm:status. I really don't know the exact/right status property but the two properties that I mentioned is for workflow.

Thank you,
Irene

billerby
Champ on-the-rise
Champ on-the-rise
Is this correct?

When a workflow is marked complete you want the file associated with the workflow to be linked to the category (tag) approved?

/Erik

irene08
Champ in-the-making
Champ in-the-making
Is this correct?

When a workflow is marked complete you want the file associated with the workflow to be linked to the category (tag) approved?

/Erik


Yes. Yes. You're right. Is there anything else that you want/need to ask?


Thank you,
Irene

billerby
Champ on-the-rise
Champ on-the-rise
No I understand your requirements now Smiley Happy

However I think you have to do this the other way around. That is, you need to design and deploy a slightly modified version of the workflow you are using. This is because the bpm:status property is set on the workflow itself and not on your document. You will need to have the workflow tag your document.

Here is a great tutorial by Jeff Potts: http://ecmarchitect.com/images/articles/alfresco-workflow/advanced-workflow-article-2ed.pdf

Regards
/Erik

irene08
Champ in-the-making
Champ in-the-making
No I understand your requirements now Smiley Happy

However I think you have to do this the other way around. That is, you need to design and deploy a slightly modified version of the workflow you are using. This is because the bpm:status property is set on the workflow itself and not on your document. You will need to have the workflow tag your document.

Here is a great tutorial by Jeff Potts: http://ecmarchitect.com/images/articles/alfresco-workflow/advanced-workflow-article-2ed.pdf

Regards
/Erik


Do you mean that I should create new file/javascript for this scenario? Is there a way that I can just add an if statement in an existing java file?

I already read that link. What page are you referring at?

Thank you,
Irene

billerby
Champ on-the-rise
Champ on-the-rise
Well, I'm not referring to one page in the tutorial, but the whole concept of creating workflows. I have not been creating workflows myself so I'm afraid I cant be more specific.

/Erik

irene08
Champ in-the-making
Champ in-the-making
Hi!

Alright. Thank you then.


Irene