Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Workroute - Chained Process Node
maxAudi
We are using a Chained Process (processB) node to create a second workflow process from an original one that is ending (processA).
I need to attach to the chained process the same document originaly attached to the processA.
As first activity of processB I set a Delay Node containing the call to a Java class that execute the followin' method:
protected Object doExecute(Object input) throws WorkflowException
{
try {
Workspace ws = getWorkspace();
long processId = getProcessId();
WorkflowProcess wfp = ws.getWorkflowProcessById(processId);
Library library = ws.getLibrary();
WorkflowNamedUdaAccessor wfpUdas = wfp.getUdas();
String docID = StaticFunctionsGCR.getUdaStringValue("docId", wfpUdas);
Item doc = (Item) library.getObjectById(docID);
wfp.addAttachment(doc.getName(), doc);
} catch (WorkteamException ex) {
throw new WorkflowException(ex);
}
Reaching the call to the addAttachment method the following exception is launched:
Fri Aug 31 09:47:14 CEST 2007: ProcessInstanceProxy.editForEnactment: com.fujitsu.iflow.common.exceptions.ServerOperationFailed: Could not edit the process instance. {Process instance can not be locked by 'wfadmin' (session=34621). The process was locked by user '(!)' (session=(!)) at Thu Jan 01 00:59:59 CET 1970 and it is still locked.}
I can' t understand why. Please help me or tell me if there's a smarter way to reach the goal.
Find more posts tagged with
Comments
There are no comments yet