Standard XPDL workflow template

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

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

Similar Messages

  • RE: standard workflow template for Rejecting of purchase order

    Hi,
    Workflow template for 'Rejecting of purchase order' , 65400030 is missing in SAP version 4.6c. Is there any patch to get this feature in 4.6c?
    Thanks and Regards,
    Sowmya

    Hi,
    Yes, it was posted previously. But we are getting some more problem regarding the workflow template.
    We have changed the standard template and it is getting reflected in all the clients. So i think these templates are client independent. Is there any way to retrieve back older version of these templates?
    Please go through this matter and reply at the earliest
    Thanks and Regards,
    sowmya

  • Need HR-qualification related standard Tasks or standard Workflow templates

    Hi,
    i need HR-qualification related standard Tasks or standard Workflow templates available if any????
    My exact requirement is Whenever i am adding a qualification for an employee i need to start the workflow to send the approval
    request to the manager ..
    Immediate responses will be highly appreciated!.

    Hi venkatramana
       Look at this link
    [ALE EDI Error Handling via Workflow |https://wiki.sdn.sap.com/wiki/display/Snippets/ALEEDIErrorHandlingvia+Workflow]
    [Complete Guide to Learn ALE Error Handling Through Workflow and Implementation|https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/609e6465-15de-2a10-859d-da7bcbca54a3&overridelayout=true]
    [https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/e6769d90-0201-0010-848d-ae3c7bb18f8a]
    Please search the forum before posting.
    Regards
    vijay

  • How to copy a standard workflow template

    Hi,
    I have a standard workflow template. I need to copy this template i.e the whole workflow template and need to do some modifications.
    how can I copy the standard workflow template to create a new template. Is there any option in SWDD tcode.
    Thanks
    Nandha kumar

    hi Nandha Kumar,
    1-> goto Transaction PFTC
    2->choose Workflow template in the first drop down box
    3->Enter the standard WF number in the second field
    4-> click button <b>'Copy task'(4th button on the application toolbar)</b>
    5->Give the Abbreviation and Name for the new custom WF
    6->Click 'Copy Task' button, or press Enter
    Hope this helps,
    Sajan Joseph.

  • Standard workflow template available for T.code - CATSXT

    Hi WF experts,
    Is there any standard workflow template available for T.code - CATSXT ?
    Regards,
    Wasim

    the Business Object associated with this Tcode is CATSXT.
    You can check this Wflow Template Ws40001001. This is related to CATS business Object.
    These are some Standard task that may be of help
    TS 20000459
    TS 20000460
    TS 40007901
    Thanks
    Arghadip

  • Need to add two activities in Purchase order workflow template

    Hello,
    I got a requirement for purchase order at workflow template level need to add two activities like below
    a) p.o changed
    b) p.o cancelled.
    once p.o changed based on agent determination agent will receive the mail in his inbox same functionality for p.o cancelled. 
    also at work item level need to add attributes .
    but currently standard workflow for PO release it WS200000075  have only release activity   .
    how to add activity types to be available workflow template also please let me how to do binding for above activities once created?

    Hi vinoth,
    yes this p.o workflow based on release strategy. i was copied the standard workflow template added activities
    one is for changed and another is rejection.
    once functional guy rejected the purchase order rejection  activity  not working properly
    also same problem faced for changed step also while change the p.o value at item level.
    i am using business object BUS2012 adding attributes for work item.
    please guide me how to achieve above functionality also how to do binding for changing and rejection activities?

  • MIRO: Activate Workflow template for Price Blocking

    Dear Friends,
    I am in the process of configuring WF for the Price block at the time of posting of invoices.
    I maintain the following setting in customizing:
    Logistics Invoice Verification->Invoice Block->Activate Workflow Template->TG 20000030    Assign agents to tasks->WS 20000397 Treatment of inv. blkd for price, Log.IV->TS 20000661 At least 1 item blocked for price reas.?
    Now for this task, I want to assign the PO creator. I do not want to assign Agent as a specific SAP user. It should be the generic user who creates the PO.
    Business Requirement: A mail should be sent to purchaser, when the invoice is blocked for price reasons.
    Please Advise.
    With Kind Regards
    Faisal

    Friends,
    I want to set a deadline monitoring for a case when the approver doesnt execute the workitem even after 2days. (so I believe I need to use "Requested Start")?
    Further I understand how this is  done, my question is can we do change it to the standard template or do I need to copy it and then make the changes.
    Also Kindly share some information on using SRM ALERTS for the same functionality to send reminders/alets to approvers on delay of approving task.
    Thank you so much.
    Vj

  • How to transport changes made on Workflow Template to other cleint

    We have make changes to Workflow template via tcode PFTC_CHG (Change Task), with workflow builder screen, we make changes on the standard task, work item text etc, save the changes to workflow template WS90000XXX. However the changes we make is not save under a Transport Request number.
    How to make the changes on workflow template to save under a transport request and transport it to other client. ?

    Hi Eric,
    All development and customization of workflwo are saved in a transport request.
    If while making the changes it did not prompt you for a TR then check the TR in whcih the task was created.
    To port TRs follow the below procedure:
    1. Go to t-code SCC1.
    2. Select the transport request number and enter the source system (client)
    3. Click on 'Including Request Subtasks.
    4. Click on button 'Start immediately'
    This would port the TR.
    Please note to port workbench TRs before the customizing TRs.
    Regards,
    Saumya

  • How can we find workflow templates activated ina system ?

    how can we find workflow templates activated ina system ?
    Could you please tell me a table name for that ?
    thanks

    Hello ,
    I need the active workflow templates regardless of business object,event or template etc
    So I used method suggested by Mohammad Anwar  and checked the table HRS1205
    Here I find a long list of active workflow templates
    But further to that I need to find which workflows have been activated and implemented to meet business requirement and put to use in the system.
    For this I checked the SWI1 in production system to get an idea of what all workflows are active.This will give day to day data.
    But if I need to find the same in HRS1205 table then can I consider those entries of active workflows for which UNAME field is not standard SAP userID but a dialog user ID of any user ?
    thank you

  • Internal order processing for Workflow template

    Hi All,
    I have a requirement for Internal order processing Tcode : KO01.
    Is there any standard workflow template for KO01.
    because internal budget need to approve by the approvals
    Please let me know as soon as possible.
    Thanks & Regards,
    Prasad.

    Hi Prathap,
    Did you get a workflow template for the internal order Approval?
    Working on creating a worflow for Capex functionality but don't really know where to begin.
    Have looked into the following Tcodes:
    Ko01, ko02 and ko22.
    Pls help.
    Thanks & Regards
    Stephanie

  • SAP Workflow Template Changes

    Hi Experts,
    I have a custom Workflow template that needs some changes.
    - Change in the BO method code of an existing standard task of this template
    - Addition of elements in the main container of this template
    - Changing the container bindings for email steps / edit email
    How should I go about doing these changes, please advise
    - Once I open the template in SWDD, is it advisable to goto Menu Workflow->Generate Version or directly edit the template and save.
      Which is the best practice / difference it makes ?
    - Any specific order that I need to follow while changing the different template components
    - While transporting the TR for workflow templates, what should be taken care of ?
        In Production system, version is 0003 and in Dev it is 0004, both with the same dates.
    Also pls provide any link/document that can guide on the workflow change process, it would be great.
    Thanks in advance for your time and inputs !
    Regards,
    Mirza.

    here are some links:
    SAP Library - Conv250: BC SAP Business Workflow - Tutorials
    Extending Object Types: Inheritance and Delegation (SAP Library - Business Task Management)
    Tutorial: Workflow Programming (SAP Library - Business Task Management)

  • Workflow template - WS72100012 not available in 6.1 - MDGF

    Hello Michael
    As per your suggestion I tried to replicate the PC and CC hierarchy using workflow - WS72100012. The problem is, workflow template WS72100012 is not available in the system (MDG 6.1).Can you please suggest how to use this template?
    Kiran

    Hi Kiran,
    actually there is no standard workflow, at least from SAP's point of view. We deliver multiple workflow templates to give you basic ideas what you could do - and sometimes what you have to do - w.r.t. to workflows and related processes.
    Still the workflow has to fit to your customer's needs. The tool itself is very flexible so that you can design and model a workflow that exactly fulfills the customer's requirements and that includes in special circumstances mandatory or strictly recommended steps by SAP.
    So if you do not want to use WS72100012, but you want to use IDOc based replication on MDG-F hierarchies, you should include the tasks of WS72100012 being responsible for the replication in your custom template. Otherwise the replication might fail.
    Best regards
    Michael

  • "Workflow Template Create" screen  appears while executing the work item.

    Hi,
       I am learning the workflow. I have created a test workflow in which there is a user decision step and 2 mail sending steps for the outcomes of the user decision.The workflow is activated properly . When I excute the workflow the screen for "Workflow Template Create" opens everytime. When I go to the Business workpkace a mail is there in my inbox with the title as given in the user decision step. Again when i am trying to execute the work item in the inbox again the same screen for "Workflow Template create " is opening. I am totaly confused with this problem . Pls suggest what might be the reason..?

    I think the Wflow Template Creation screen is not opening but your current session is getting closed so the previous session which is Wflow Create one which you have already opened is appearing. Please check your template design and act accordingly.
    Thanks
    Arghadip

  • How to add Signatre to Standard Purchase Order Template XSL-FO

    I need to add digital signature to the standard Purchase Order Template which is sent to supplier.
    could you let me know the process.
    thanks
    Edited by: 855902 on May 24, 2011 8:00 PM

    Thanks for your response.
    I tried to change the code in below format but it was giving error.
    Original code
    <xsl:value-of select="LINE_LOCATIONS/LINE_LOCATIONS_ROW/PROMISED_DATE"/>
    modified to
    <xsl:value-of select="xdoxslt:format_date(LINE_LOCATIONS/LINE_LOCATIONS_ROW/PROMISED_DATE,'dd-mmm-yyyy','dd/mmm/yyyy hh24:mi:ss',$_XDOLOCALE,$_XDOTIMEZONE)"/>
    also tried with
    <xsl:value-of select="xdoxslt:format_date(LINE_LOCATIONS/LINE_LOCATIONS_ROW/PROMISED_DATE,'dd-mmm-yyyy','dd-mmm-yyyy hh24:mi:ss',$_XDOLOCALE,$_XDOTIMEZONE)"/>
    also tried like
    <xsl:value-of select="xdoxslt:format_date(LINE_LOCATIONS/LINE_LOCATIONS_ROW/PROMISED_DATE,'dd-mmm-yyyy','dd/mmm/yyyy',$_XDOLOCALE,$_XDOTIMEZONE)"/>
    Tried above 3 methods but it didn't work.
    right now the date format in pdf file is 24-MAY-2011 21:56:24 i need to remove 21:56:24 and have only 24-MAY-2011
    any suggestions.
    thanks

  • Workflow template not shown in list workflow setting

    I created a new list, a new site content type, and new reusable workflow. The site content type is added to the list.
    Worked fine at the Dev environment.
    Deployed the workflow to UAT environment as WSP file and list as a list template.
    In UAT, a new site content type is created and added to the list.
    The WSP was activated and feature enabled. But the workflow is not associated with the site content type, instead associating with all site content type.
    Then use copy and modify to associate the workflow with the right content type. It works. Save and publish the workflow.
    Go to List, Workflow settings, click on Add a Workflow, the workflow template is not shown in the workflow template drop-down. Even when the associated content type is all, the workflow should display in the workflow template drop-down in list workflow settings.
    Save and publish the workflow a couple of times, ususally the issue will be resolved. But not this time..
    Please help!! Thanks a lot!!
    Feng Wan

    Hi Prabhakar ,
    just give a try for following program .
    Use program RHMOVE30 - enter object type WS, and your WF number. Use eval path TASKHIER.
    Use the dropdown on the request parameter to create a transport request.
    When you get the result list, make sure your task is selected for transport then use the option to include it in the Transport.
    You should then be able to go to txn SE09 and see your task has been assigned to the transport.
    You can then transport your task.
    Regards,
    Shounak M.
    Message was edited by: Shounak  M

Maybe you are looking for

  • Help only had verzion for a few days and very frustrated. About to return

    So we have been with sprint for over 9 years.  And have been happy with their service... However our friend has verzion and was using it @ our house and we noticed how much faster it was so we decided to switch....... Black Friday we wanted a deal of

  • A New Wiki Page on Installing Munin

    I just wrote a wiki page detailing an installation of munin. What's munin? It makes pretty graphs. Props to evanlec, for making a super simple AUR pacakge!

  • How can I clear out the movies?

    In itunes, I have selected my Itouch from the left side of the screen. in the main screen, at the top, it says summery, apps, music, movies, TV Shows, etc. I have selected Movies.. but there are no movies on the Hard drive. I deleted them all. But th

  • Printing individual forms in pdf file

    I have multiple interactive forms in an Adobe X Pro file.  Is there a way to edit the printing so the user can print an individual form rather than selecting the related page numbers?

  • Opinion of 256Gb SSD?  Worth it?

    I don't know why Apple has the 320GB at 5400 rpm as their standard config, when the 320Gb at 7200rpm is only $45 more (for educators it is). If I want the 7200rpm drive I would have to order it so that got me thinking about getting the 256Gb SSD driv