on 2012 Jan 19 12:27 PM
Hi
Could somebody plz provide me SAP standard XPDL workflow templates as mentioned in workflow and scripting guide. I am new to e sourcing workflows.
Regards
Shobha
Please refer the forum discussion below. Someone has mentioned the following steps to create a sample XPDL.
http://forums.sdn.sap.com/thread.jspa?messageID=10828609#10828609
try copying below XML and save it as .xpdl file. NOTE: This file will work only in together 2.1 version 1.0 Together 2005-07-07. This is a basic 3 step approval process The owner of the workflow process workflow_engine approvers approvers approvers getApprovalStatus() == APPROVED getApprovalStatus() == APPROVED getApprovalStatus() != PENDING getApprovalStatus() == DENIED getApprovalStatus() == DENIED
Hope this helps,
Vikram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
I am trying to create a simple one step approval workflow wherein the 2nd collaborator in the collaborator list would be added as an approver. I am getting an error with addApprover() function
addApprover(UserAccount );
Here user account is an instance of type UserAccountIbeanIfc
ERROR : Command not found: addApprover( com.frictionless.api.usermgmt.masterdata.UserAccountIBeanImpl )
I tried to use
ANY= 0;
addApprover(UserAccount, new CollaboratorApprovalRuleType(ANY) );
Here I got error: inline evaluation of: ``logMsg = Logger.createLogMessage(session); agreementBean = doc.getRootParentIBe . . . '' : Can't new: void
Am I not using the addApprover() function properly. Is there something I am missing.Kindly let me know.
Regards
Shobha
Hi
I have created a simple workflow prescript to select the 2nd group in the collaborator list as the approver. PFB the script definition
-
import com.frictionless.api.usermgmt.masterdata.*;
logMsg = Logger.createLogMessage(session);
agreementBean = doc.getRootParentIBean();
CollaboratorCollection = agreementBean.getCollaborators();
Collectionbean= CollaboratorCollection.get(1);
CollReference = Collectionbean.getDisplayName();
GroupIBeanHomeIfc home = (GroupIBeanHomeIfc) IBeanHomeLocator.lookup(session, GroupIBeanHomeIfc.sHOME_NAME );
sam_grp = home.findGroup(CollReference);
logMsg.setLogMessage("ErrorWorkflow7"+ sam_grp.getObjectReference());
Logger.info(logMsg);
addApprover(sam_grp.getObjectReference(), new CollaboratorApprovalRuleType(0));
-
The contract document is getting locked but approve/ reject button is not appearing for approvers. I checked the logs and found the following error:
-
2012-01-31 13:19:40.632 ERROR local4 ScriptEnvironment execute Daemon-028: EVENT_WORKFLOW_ENGINE (-2147483548, 0) event_workflow_engine daemon Sourced file: inline evaluation of: ``import com.frictionless.api.usermgmt.masterdata.; logMsg = Logger.createLo . . . '' : Can't new: void : at Line: 15 : in file: inline evaluation of: ``import com.frictionless.api.usermgmt.masterdata.; logMsg = Logger.createLo . . . '' : new CollaboratorApprovalRuleType ( 0 )
Sourced file: inline evaluation of: ``import com.frictionless.api.usermgmt.masterdata.; logMsg = Logger.createLo . . . '' : Can't new: void : at Line: 15 : in file: inline evaluation of: ``import com.frictionless.api.usermgmt.masterdata.; logMsg = Logger.createLo . . . '' : new CollaboratorApprovalRuleType ( 0 ) | at bsh.BSHAllocationExpression.objectAllocation(Unknown Source)| at bsh.BSHAllocationExpression.eval(Unknown Source)| at bsh.BSHPrimaryExpression.eval(Unknown Source)| at bsh.BSHPrimaryExpression.eval(Unknown Source)| at bsh.BSHArguments.getArguments(Unknown Source)| at bsh.BSHMethodInvocation.eval(Unknown Source)| at bsh.BSHPrimaryExpression.eval(Unknown Source)| at bsh.BSHPrimaryExpression.eval(Unknown Source)| at bsh.Interpreter.eval(Unknown Source)| at bsh.Interpreter.eval(Unknown Source)| at bsh.Interpreter.eval(Unknown Source)| at com.frictionless.comp.scripting.ScriptEnvironment.execute(ScriptEnvironment.java:143)| at com.frictionless.workflow.engine.handlers.PhaseChangeInstantiationRequestHandler.processApprovalActivity(PhaseChangeInstantiationRequestHandler.java:851)| at com.frictionless.workflow.engine.handlers.PhaseChangeInstantiationRequestHandler.processActivity(PhaseChangeInstantiationRequestHandler.java:296)| at com.frictionless.workflow.engine.handlers.PhaseChangeInstantiationRequestHandler.processHook(PhaseChangeInstantiationRequestHandler.java:245)| at com.frictionless.workflow.engine.handlers.WorkflowEngineRequestHandler.process(WorkflowEngineRequestHandler.java:197)| at com.frictionless.workflow.engine.WorkflowEngine.process(WorkflowEngine.java:403)| at com.frictionless.workflow.engine.WorkflowEngine.processPhaseChangeInstantiationRequest(WorkflowEngine.java:134)| at com.frictionless.workflow.engine.WorkflowEngineDaemon.processPhaseChangeInstantiationRequest(WorkflowEngineDaemon.java:328)| at com.frictionless.workflow.engine.WorkflowEngineDaemon.processHook(WorkflowEngineDaemon.java:148)| at com.frictionless.comp.daemon.AbsEventDaemon.process(AbsEventDaemon.java:151)| at com.frictionless.comp.daemon.ResponsibleEventDaemon.runHook(ResponsibleEventDaemon.java:143)| at com.frictionless.comp.daemon.ResponsibleDaemonBase.run(ResponsibleDaemonBase.java:301)| at java.lang.Thread.run(Thread.java:595) Sourced file: inline evaluation of: ``import com.frictionless.api.usermgmt.masterdata.*; logMsg = Logger.createLo . . . '' : Can't new: void
2012-01-31 13:19:40.71 ERROR local4 WorkflowEngineDaemon processHook Daemon-028: EVENT_WORKFLOW_ENGINE (-2147483548, 0) event_workflow_engine daemon com.frictionless.common.scripting.ScriptExecutionException: Sourced file: inline evaluation of: ``import com.frictionless.api.usermgmt.masterdata.; logMsg = Logger.createLo . . . '' : Can't new: void com.frictionless.common.scripting.ScriptExecutionException: Sourced file: inline evaluation of: ``import com.frictionless.api.usermgmt.masterdata.; logMsg = Logger.createLo . . . '' : Can't new: void| at com.frictionless.comp.scripting.ScriptEnvironment.execute(ScriptEnvironment.java:205)| at com.frictionless.workflow.engine.handlers.PhaseChangeInstantiationRequestHandler.processApprovalActivity(PhaseChangeInstantiationRequestHandler.java:851)| at com.frictionless.workflow.engine.handlers.PhaseChangeInstantiationRequestHandler.processActivity(PhaseChangeInstantiationRequestHandler.java:296)| at com.frictionless.workflow.engine.handlers.PhaseChangeInstantiationRequestHandler.processHook(PhaseChangeInstantiationRequestHandler.java:245)| at com.frictionless.workflow.engine.handlers.WorkflowEngineRequestHandler.process(WorkflowEngineRequestHandler.java:197)| at com.frictionless.workflow.engine.WorkflowEngine.process(WorkflowEngine.java:403)| at com.frictionless.workflow.engine.WorkflowEngine.processPhaseChangeInstantiationRequest(WorkflowEngine.java:134)| at com.frictionless.workflow.engine.WorkflowEngineDaemon.processPhaseChangeInstantiationRequest(WorkflowEngineDaemon.java:328)| at com.frictionless.workflow.engine.WorkflowEngineDaemon.processHook(WorkflowEngineDaemon.java:148)| at com.frictionless.comp.daemon.AbsEventDaemon.process(AbsEventDaemon.java:151)| at com.frictionless.comp.daemon.ResponsibleEventDaemon.runHook(ResponsibleEventDaemon.java:143)| at com.frictionless.comp.daemon.ResponsibleDaemonBase.run(ResponsibleDaemonBase.java:301)| at java.lang.Thread.run(Thread.java:595)|Sourced file: inline evaluation of: ``import com.frictionless.api.usermgmt.masterdata.; logMsg = Logger.createLo . . . '' : Can't new: void : at Line: 15 : in file: inline evaluation of: ``import com.frictionless.api.usermgmt.masterdata.; logMsg = Logger.createLo . . . '' : new CollaboratorApprovalRuleType ( 0 ) | at bsh.BSHAllocationExpression.objectAllocation(Unknown Source)| at bsh.BSHAllocationExpression.eval(Unknown Source)| at bsh.BSHPrimaryExpression.eval(Unknown Source)| at bsh.BSHPrimaryExpression.eval(Unknown Source)| at bsh.BSHArguments.getArguments(Unknown Source)| at bsh.BSHMethodInvocation.eval(Unknown Source)| at bsh.BSHPrimaryExpression.eval(Unknown Source)| at bsh.BSHPrimaryExpression.eval(Unknown Source)| at bsh.Interpreter.eval(Unknown Source)| at bsh.Interpreter.eval(Unknown Source)| at bsh.Interpreter.eval(Unknown Source)| at com.frictionless.comp.scripting.ScriptEnvironment.execute(ScriptEnvironment.java:143)| at com.frictionless.workflow.engine.handlers.PhaseChangeInstantiationRequestHandler.processApprovalActivity(PhaseChangeInstantiationRequestHandler.java:851)| at com.frictionless.workflow.engine.handlers.PhaseChangeInstantiationRequestHandler.processActivity(PhaseChangeInstantiationRequestHandler.java:296)| at com.frictionless.workflow.engine.handlers.PhaseChangeInstantiationRequestHandler.processHook(PhaseChangeInstantiationRequestHandler.java:245)| at com.frictionless.workflow.engine.handlers.WorkflowEngineRequestHandler.process(WorkflowEngineRequestHandler.java:197)| at com.frictionless.workflow.engine.WorkflowEngine.process(WorkflowEngine.java:403)| at com.frictionless.workflow.engine.WorkflowEngine.processPhaseChangeInstantiationRequest(WorkflowEngine.java:134)| at com.frictionless.workflow.engine.WorkflowEngineDaemon.processPhaseChangeInstantiationRequest(WorkflowEngineDaemon.java:328)| at com.frictionless.workflow.engine.WorkflowEngineDaemon.processHook(WorkflowEngineDaemon.java:148)| at com.frictionless.comp.daemon.AbsEventDaemon.process(AbsEventDaemon.java:151)| at com.frictionless.comp.daemon.ResponsibleEventDaemon.runHook(ResponsibleEventDaemon.java:143)| at com.frictionless.comp.daemon.ResponsibleDaemonBase.run(ResponsibleDaemonBase.java:301)| at java.lang.Thread.run(Thread.java:595) Unexpected error handling event----
Is there something I am missing. Kindly let me know
Regards
Shobha
Edited by: Shobha M Narayanaswamy on Jan 31, 2012 1:02 PM
Edited by: Shobha M Narayanaswamy on Jan 31, 2012 1:03 PM
Edited by: Shobha M Narayanaswamy on Jan 31, 2012 1:05 PM
Edited by: Shobha M Narayanaswamy on Jan 31, 2012 1:08 PM
Edited by: Shobha M Narayanaswamy on Jan 31, 2012 1:24 PM
Hi Experts
I am still not able to figure out how to resolve the error coming with my simple workflow to add approver. Following is the prescript that I am using for the workflow:
import com.frictionless.api.usermgmt.masterdata.*;
logMsg = Logger.createLogMessage(session);
agreementBean = doc.getRootParentIBean();
CollaboratorCollection = agreementBean.getCollaborators();
Collectionbean= CollaboratorCollection.get(1);
CollReference = Collectionbean.getDisplayName();
GroupIBeanHomeIfc home = (GroupIBeanHomeIfc) IBeanHomeLocator.lookup(session, GroupIBeanHomeIfc.sHOME_NAME );
sam_grp = home.findGroup(CollReference);
addApprover(sam_grp.getObjectReference(), new CollaboratorApprovalRuleType(0));
When I check log I see the following error with addApprover() line:
2012-02-13 12:50:35.663 ERROR local4 ScriptEnvironment execute Daemon-028: EVENT_WORKFLOW_ENGINE (-2147483548, 0) event_workflow_engine daemon Sourced file: inline evaluation of: ``import com.frictionless.api.usermgmt.masterdata.; logMsg = Logger.createLo . . . '' : Can't new: void : at Line: 15 : in file: inline evaluation of: ``import com.frictionless.api.usermgmt.masterdata.; logMsg = Logger.createLo . . . '' : new CollaboratorApprovalRuleType ( 0 )
Has anybody faced a similar error? Am I missing some steps? kindly let me know how to resolve this
Regards
Shobha
Edited by: Shobha M Narayanaswamy on Feb 13, 2012 1:08 PM
Edited by: Shobha M Narayanaswamy on Feb 13, 2012 1:09 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.