Hi Muralidharand !
I have received message from a alfresco's member :
I'm afraid it will need a lot of work .
Activiti dose support suspend process definitions and suspend the process instance ,but alfresco activiti wrapper dose not.
So to implement your requirment in share,you should extend alfresco from service level ,to webscript level,and to share UI level:
1.In java service level ,extend existing workflowService ,add suspendProcessInstance and suspendProcessDefinition method,also extend WorkflowDefinition and WorkflowInstance class and add suspend status.
2. In Webscript level,extend webscrtip such as (workflow-definition.get, workflow-instance.get , workflow-definition.putt, workflow-instance.put) to get workflow definition/instance suspend status and to update suspend status.
3.In share UI level ,display workflow definition/instance suspend status and add actions to update workflow definition/instance suspend status.
After that I tried to implemented it but I found easy way to disable/enable workflow .
on alfresco's source code package org.activiti.engine.impl class RepositoryServiceImpl have a method
- public void suspendProcessDefinitionById
- public void activateProcessDefinitionById
You can custom and change to using those methods through api/workflow-definitions
This is my personal opinion,maybe there is an easy way which I don't know.