cancel
Showing results for 
Search instead for 
Did you mean: 

Regd modification of Web Site Submission Workflow

dynamolalit
Champ on-the-rise
Champ on-the-rise
Hi,

I want to customize "website submission workflow" which we use for a web project.As per its default flow when content creator creates content using a web-project,content is submitted to content editor where editor can see the review task in his "Tasks to do" dashlet.Editor can open the task & clicks on "Approve" button to approve the content.Now workflow points to content creator where creator can see the approved content as task in his "Tasks to do" dashlet.Now when creator clicks on "Task Done" button,content is actually deployed from Creator sandbox to Editor sandbox.Here we are using ASR deployment to deploy content from Creator sandbox to Editor sandbox.
As per our project requirement ,we want that as soon as editor approves the content,the content should be deployed from Creator's sandbox to Editor's sandbox so that content creator need not to do "Task done" to deploy content.How can we achieve this?Can it be done by changing appropriate configuration files?Or do we need to write our own customized workflow?If so, are there any docs??
4 REPLIES 4

sethatrothbury
Champ in-the-making
Champ in-the-making
What version are you running? If you're on 2.2.3 you might want to check this ticket:
https://issues.alfresco.com/jira/browse/ETWOTWO-1161?page=com.atlassian.jira.plugin.system.issuetabp...

Otherwise, theoretically, you just have to skip the last task-node by changing where the final review transition points to.

dynamolalit
Champ on-the-rise
Champ on-the-rise
Hi,

Now i am using Alfresco 3.1.1.

I found a solution by replacing swimlane="initiator" to swimlane="assignee" in submit_processdefinition.xml at line no 192 & 216 as

<task-node name="submitpending" end-tasks="true">
        <task name="wcmwf:submitpendingTask" swimlane="assignee">
…..

&

<task-node name="submitted" end-tasks="true">
        <task name="wcmwf:submittedTask" swimlane="assignee">
…..

But what i observed is that after this it is taking 3-4 minutes for content to be deployed from creator sandbox to editor sandbox???Also some times creator is getting intermediate screen showing submission pending from creator side?

Do anyone has some idea on these things??

dynamolalit
Champ on-the-rise
Champ on-the-rise
Hi,

jbpm workflow timer polls at every 15 min causing some delay.It can be configured by putting appropriate value for "idleInterval" parameter

<field name="idleInterval"><int value="your  value" /></field>

in jbpm.cfg.xml under org/alfresco/repo/workflow/jbpm package in alfresco-repository.jar in ../WEB-INF/lib.

dynamolalit
Champ on-the-rise
Champ on-the-rise
Hi,

Finally i found that i can override this using info available @

http://wiki.alfresco.com/wiki/Content_Launch#Configuration which says

The workflow timer task polls every 1.5 mins (90 secs) by default, this can be changed in a file called jbpm.cfg.xml in the org/alfresco/repo/workflow/jbpm package. To change the "idleInterval" value, either edit this file directly or using the standard override mechanism, copy jpbm.cfg.xml and point to it by overriding the "jbpm_configuration" bean in workflow-context.xml.

So just go to
alfresco.war\WEB-INF\classes\alfresco\workflow-context.xml


& search for jbpm_configuration.It will available as a bean definition like this:

<bean id="jbpm_configuration" class="org.alfresco.repo.workflow.jbpm.AlfrescoJbpmConfigurationFactoryBean">
      <property name="sessionFactory" ref="sessionFactory"/>
      <property name="configuration" value="classpath:org/alfresco/repo/workflow/jbpm/jbpm.cfg.xml"/>
   </bean>

So update classpath as per your requirement.Its done. Smiley Happy