on 08-23-2012 12:30 PM
Hi All ,
We are presently working on SAP Sourcing 7.0 Sp03 after upgradation from Sp02 and one of the workflow which worked fine in previous versions is showing the issue.
My Post Script logic in the workflow is
// This step of the approval process brings the document in edit mode if it is rejected.
// and to Awaiting CM Output Signoff if approved.
// Create a logger for messaging
logMsg = Logger.createLogMessage(session);
currentPhase = doc.getCurrentPhase().getDisplayName(session);
// If we are not approved, then edit
if (getApprovalStatus() != APPROVED)
{
home = doc.getIBeanHomeIfc();
home.upgradeToEdit(doc);
}
// If we are approved, Awaiting CM Output Signoff
if (getApprovalStatus() == APPROVED)
{
home = doc.getIBeanHomeIfc();
home.upgradeToEdit(doc);
if(!currentPhase.equals("Awaiting CM Output Signoff"))
{
try
{
home.changePhase(doc,"Awaiting CM Output Signoff");
}
catch(e)
{
logMsg.setLogMessage(e.toString());
logMsg.setException(e);
Logger.error(logMsg);
}
}
}
logMsg.setLogMessage("Completed Workflow");
Logger.info(logMsg);
Now once the document is getting locked i am getting the below error in logs
Facility=local4;sessionid=odp_event_workflow_engine;tenantid=#system#;username=daemon;exception=com.sap.odp.api.common.exception.ApplicationException: You may not transition to the target phase Awaiting CM Output Signoff. It is neither a valid next nor previous phase.;stacktrace=AssociatedAttribute=PHASE_ERROR - SourceBo=-2147478976:1100:SA_Test - ValidatingParent=-2147478976:1100:SA_Test - com.sap.odp.api.common.exception.ApplicationException: You may not transition to the target phase Awaiting CM Output Signoff. It is neither a valid next nor previous phase.
at com.sap.odp.doc.AbsDocHome.processPhaseChangeByExternalID(AbsDocHome.java:575)
Everything in the workflow is same. The above workflow is showing proper behaviour when rejected , but when approved its not going to next phase.
Any help wud be gr8.
thanks,
uday
Hi All,
As on update of this, what I observed is if i am trying to transit to a workflow attached phase by XPDL after Approval, then the project is not tranisitioning and is showing the invalid phase error. I would like anyone on SP03 to test in free time to confirm if they are facing same situation.
Thanks,
Uday
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Armin,
I have already raised OSS message to SAP.
The issue is i have around 5 different WF, all of them were working fine till 2 days back.
But 2 days back, when ever user, clicks on Approve action on his workitem, screen stays on that comments screen only and does not proceed ahead to complete the workitem.
But if user clicks on Reject action, it takes to comments page, after that it Finishes the workitem properly by shifting the phase to previous phase of the document.
Only Approve action is NOT working. I checked logs and there are no errors related to this.
Wanted to add that this is happening only in our Development system, QA and Prod are working properly.
Upgrade to patch was done sometime back, not 2 days back !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.