AWE (Approval Workflow Engine) Question

I'm trying to implement AWE (Approval Workflow Engine) and am having a bit of a problem.
I've been following the instructions on the Red Paper document concerning implementing AWE. I have the following code. When this code fires the cross reference table is populated. However the PSWORKFLOW table does not get populated. The orinator does have a supervisor selected in the Workflow tab of his user profile. But nothing gets routed to the user for approval. Like I said the PSWORKLIST record does not get populated when this code fires. I'm trying to follow the code from EProcurment but am wondering if it's a coding or configuration issue. Any help is greatly appreciated. Thanks!!
&reqRecord = CreateRecord(Record.CUS_VCHR_AW_VW);
GetLevel0()(1).GetRecord(Record.VOUCHER).CopyFieldsTo(&reqRecord);
&launchMgr = create PTAF_CORE:LaunchManager("VOUCHER", &reqRecord, "");
&launchMgr.requester = "TEST";
/* &launchMgr.appDef.trace_flag = True; */
&launchMgr.SetHeader(&reqRecord);
&launchMgr.DoSubmit();

I am also trying to code for Voucher approval workflow. The worklist is not getting populated and I am getting an error on the following code:
If &sac_aw_ref_launch_mgr.hasAppDef = True Then.
I have the process definition setup.
My code is as follows:
SavePostChange (Component)
Function KickoffAW()
If &sac_aw_ref_launch_mgr.hasAppDef = True Then
/* Update the requester, if necessary */
If &sac_aw_ref_launch_mgr.requester <> VOUCHER.OPRID Then
&sac_aw_ref_launch_mgr.requester = VOUCHER.OPRID
End-If;
&sac_aw_ref_launch_mgr.appInst.Save();
&vchRecord = CreateRecord(Record.BC_VCHR_AW_VW);
GetLevel0()(1).GetRecord(Record.VOUCHER).CopyFieldsTo(&vchRecord);
&sac_aw_ref_launch_mgr.SetHeader(&vchRecord);
If (&sac_aw_ref_launch_mgr.submitEnabled) Then
&sac_aw_ref_launch_mgr.DoSubmit();
End-If;
End-If;
End-Function;
SavePostBuild (Component)
/* Workflow Approval - Start */
If %Mode = "A" Then
&REC1 = CreateRecord(Record.BC_VCHR_AW_VW);
GetLevel0()(1).GetRecord(Record.VOUCHER).CopyFieldsTo(&REC1);
rem &REC1 = GetLevel0().GetRow(CurrentRowNumber()).GetRecord(Record.VOUCHER);
&awprcs_id = "BC_VOUCHER"; /* The transcation definition setup */
/* Initialize the approval manager */
&sac_aw_ref_launch_mgr = create PTAF_CORE:LaunchManager(&awprcs_id, &REC1, VOUCHER.OPRID);
&submitEnabled = &sac_aw_ref_launch_mgr.submitEnabled;
&previewEnabled = &sac_aw_ref_launch_mgr.previewEnabled;
&resubmitEnabled = &sac_aw_ref_launch_mgr.resubmitEnabled;
End-If;
/* Workflow Approval - End */
Thanks,
Edited by: user11900060 on Oct 5, 2009 1:25 PM

Similar Messages

  • OIM 11g Approval Workflow Notification questions

    Hello.
    I am working with an OIM 11g approval workflow. The workflow will flow from one group to another, and if one user in each group approves it, it is approved. Because I assigned it to groups, the notifications are going to every user in each group.
    Is it possible to send a notification to only a single user within a group, instead of everyone? Does auto claim do this?
    Is it possible to send a different notification if the ApprovalTask is rejected versus approved?
    Thanks.

    If I understand correctly, you want to send the notification only to the user who has approved the request and not to all in the group. You can do it by NOT using the notification tab in the .task but by using EmailNotificationService after the .task in BPEL. There you can read the data from payload on who approved the request and can send the notification only to that user. Same way for rejects. You can configure that.
    1. After your .task completion you can have a decision box which can check the value for 'outcome' and then direct it to appropriate path for appropriate notification.
    or
    2. Based on outcome you can set the template in a variable and then in the notificationservice use that variable.
    -Bikash

  • OIM Approval Workflow Scenario/Question

    Hello,
    Can anybody please explain how the approval workflow actually works in OIM?
    Scenario - After a user does self registration using the web console - how can we specify tasks in between that workflow - so that the user's manager should receive/approve the request first and then suppose then the request goes to some Department Head for his approval and then only the user will receive and confirmation email for logging into OIM.
    I understand the Provisioning workflow perfectly from OIM User Form to PRocess Form and from their to Target. But really want to understand this 'Approval/Self REgistration' workflow. Can anybody explain me with the steps that are needed to be configured in OIM Design Console for the 'scenario' explained above.
    Many Thanks!

    Hi,
    There is one possible solution for your requirement. I jsut the forget the name of the workflow which trigger while self registration.
    You can do one thing in that process add two task which assign task to manager and once he approved the request task will be assigned to deapartment head and once he approved the user will be created in OIM.
    Task will be assigned not as approval but as asisgned task, if its ok with you; just try this and let me know.
    Regards
    Alabhya Goel

  • Financials AWE - EOAW_CORE.ENGINE error when submitting approval workflow

    I'm getting the following error when trying to approve or preview and save a requisition with approval workflow (awe) enabled in our stage environment. It works correctly in our development environment, and I've tried comparing all of the configurations, roles, permission lists, templates, etc., to assure that they match, but something is still awry. I've compared a lot of table contents between both environments; although I may be missing some. Can anyone give me some ideas as to what to look for to see what might be missing from our stage environment that might have been overlooked? When workflow for requisitions is disabled; the requisition saves correctly.
    First operand of . is NULL, so cannot access member Check. (180,236) EOAW_CORE.ENGINE.DefPathinst.OnExecute
    Name:InstantiateSteps PCPC:2891 Statement 38
    Called from:EOAW_CORE.ENGINE.DefPathInst.OnExecute
    Name:Instantiate Statement:24
    Called from:EOAW_CORE.ENGINE.StageInst.OnExecute
    Name:InstantiatePaths Statement:55
    Called from:EOAW_CORE.ENGINE.AppInst.OnExecute
    Name:RetrieveStages Statement:370
    Called from:EOAW_CORE.ENGINE.AppInst.OnExecute
    Name:InstantiateStages Statement:416
    Called from:E
    The first operand of the dot operator is the NULL value, indicating the lack of any object value. As a consequence, the given method or property cannot be used.

    PeopleSoft 9.1 - eProcurement - Create requisition
    Hi,
    Could some one help to find the solution?
    While editing a requisition, Just deleting a line and ‘save and submit’ creates a .is NULL error
    First operand of . is NULL, so cannot access member Terminate. (180,236) EOAW_CORE.ENGINE.AppInst.OnExecute Name:TerminateLine PCPC:60811 Statement:964
    Called from:EOAW_CORE.ApprovalManager.OnExecute Name:DoLineTerminate Statement:166
    Called from:PV_REQ_WRK.PV_SAVE_AND_SUBMIT.SavePostChange Name:KickoffAW Statement:103
    Called from:PV_REQ_WRK.PV_SAVE_AND_SUBMIT.SavePostChange Statement:185

  • SOA Approval Workflow - Questions

    Hello,
    i created a simple approval workflow, which assigns a request to the creator.
    I use the following expression:
    Identification Type: User
    Data Type: By Expression
    Value: /task:task/task:payload/task:
    Now, i want to assign the request to a group/role of the request. All members of this group could accept/reject the request.
    How to set this expression?

    This works, but i need a dynamically solution.
    If a user of group A do a request, this should be assigned to group A
    If a iuser of gorup b do a request, this should be assigned to group B
    My solution is at the momente "hard coded". I need for each group another workflow
    Is it possible create one dynamic workflow for all groups?

  • Approval Workflow Question

    I need help setting up an approval workflow. The workflow should run as below.
    User submits InfoPath Form.
    Form is sent to Approver 1
    Approver 1 receives a reminder 1 day before due date.
    If Approver 1 does not meet the due date then the form is sent to Approver 2
    Approver 2 is sent a reminder 1 day after they receive the form.
    As per default Approval Process, If at any stage the form is rejected, it is sent back to the Originator.
    What I would like to add is when Approver 1 receives the task, they can change the Approval Process to "In Progress" so to stop the workflow sending to Approver 2.
    Any help on this would be really appreciated.
    dfrancis

    Yes developing a workflow with above conditions is possible in both SharePoint Designer Workflow and off-course in Visual Studio Workflow (A Sequential Workflow would be enough).
    As for the SPD Workflow, you would end up developing a little complex workflow with conditions tracking the approval status. You can set a condition to check your due date field with current date and then send an email via Send email action.
    You may create custom Approval Status drop-down column with two values "Approved" and "Rejected".
    If any Approver selects "Rejected" value in drop-down in EditForm.aspx then create action
    "Send email to CreatedBy"
    You can create task for Approver 2 when Approver 1 sets the status to "Approved". Therefore until the Approver 1 selects "Approved" the task would not be created for Approver 2.
    On the other if you are not comfortable creating SPD workflow then go for Sequential Workflow in Visual Studio and you would have more control over the conditions.

  • Document Approval Workflow Question

    I have a document approval workflow set on a document library, because I want the documents to require approval by the approver before they can be seen. I also have versioning set on the library. However, once the documents are approved and then later
    changed, the Document Status is reset to Draft and requires approval again. Is there a way to use either Document Approval or Versioning or a combination of both to keep the document in a draft state and not viewable until approved, and then not change states
    again if changed? Thank you!

    Hi,
    The screenshot is Content Approval option in Document library settings. As we can tell from the explanation in the left part, content approval is designed to specify whether new items or changes to existing items should remain in a draft state until they
    have been approved. It will work both when a document is uploaded to library and when a document is edited.
    If you would like approval only happen on first uploading but not on lated editing, then you might use other method for approval progress.
    As workaround, you could use OOB approval workflow and specify it to start only when an item is created, so that the approval progress will only happen on first uploading.
    https://support.office.com/en-nz/article/Understand-approval-workflows-in-SharePoint-2010-a24bcd14-0e3c-4449-b936-267d6c478579
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • PSFT HCM 9.0 Federal Product, AWE  --- Custom Workflow

    How and where I would add code to give me this workflow working:
    Step     Role     Business Logic (Process)
    1     Initiator     On a successful save, generate Worklist notification and set WIP status to 1st
    2     Authorizer     Reviews PAR and sends to the Approver. The WIP status is set to SIG. An e-mail message and Worklist item is generated to the Approver
    3     Approver     Reviews PAR and sends it to HR Reviewer1. The WIP Status is set to HRV1 and a Worklist item is generated for the HR reviewer. The Approver can return PAR back to the Authorizer for additional information.
    4     HR Reviewer     Reviews PAR and sends it to HR Processor. The Worklist item is generated for the HR Processor. The reviewer can also return PAR back to the Approver for additional information. A Worklist item and an e-mail are generated for the Approver.
    5     HR Processor     HR Processor completes PAR and changes WIP status to PRO. An e-mail message is generated to the Initiator.

    Hi,
    Did you receive answers to your questions? if you do receive any response regarding that one could you please share it to me. I had another question is their any relationship with respect to the Work in Progress (WIP) activity to the AWE as well. I am also creating a custom worklow for PAR, so i would like to know will there be any relationship to these process. if i do setup WIP activity and can I use it independently or do i need to link these ones to Application Workflow Engine?
    I would appreciate if you could share some information with me as well.
    Thanks,
    Krishna.
    [email protected]

  • Trying to set up an out of the box SP 2010 approval workflow that doesn't generate warnings or errors

    I have a custom list for which I want an approval workflow.  There is only going to be one stop for the approval - creating an item is a request to a person for a new code to be created. 
    If I do not turn on content approval, then I get the message:
    The workflow could not set content approval status. Enable content moderation for this list and run the workflow again.
    When I turn on content approval, then when the users go to the custom list to create an item, they see this message:
    Items on this list require content approval. Your submission will not appear in public views until approved by someone with proper rights.
    Surely I am missing something obvious. I just want a standard SP 2010 form without warnings to gather info from the user, then to create a workflow task that sends a person an email that they need to approve or reject the request.
    The second message is going to cause questions from the users. The person who has to approve the tasks wants to be able to see what requests are awaiting approval vs approved vs rejected.
    Is this something that is not doable in SP 2010?

    the "Approval Process" step is designed for manipulating the "Moderation Status" (Content Approval status) of a list item... What you are seeing is DESIGNED behavior.
    When Content Approval is enabled, content changes are not made public until they have been approved. The Approval workflow sends the email to a manager, who is supposed to approve or reject the change.
    If Content Approval is DISABLED, there is no point to the workflow.
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • OIM 11.1.1.5 Approval Workflow Issue

    Hi,
    I have installed OIM 11.1.1.5. While self-registration of a user, the request is created and by default assigned to xelsysadm as the request level approver.
    However, when the approver logs in, assigns the organization to the user and approves the request, it is shown that the approval task is completed.
    But the request status doesn't change and remains "Obtaining Request Approval" and thus the user is not created in OIM.
    In SOA server, on checking the logs (soa_server1-diagnostic.log) we found the following error -
    [soa_server1] [ERROR] [] [oracle.soa.bpel.engine.dispatch] [tid: orabpel.engine.pool-5.thread-4] [userId: weblogic] [ecid: ee9b8be672bf5ad0:-72f1c18e:1399f6dc058:-8000-0000000000000108,0:1:100000006] [APP: soa-infra] failed to handle message[[
    java.lang.NoSuchMethodError: oracle.wsm.policy.model.IPolicySet.getStatus()Loracle/wsm/policy/model/IPolicySet$POLICYSET_STATUS;
    We are unable to resolve the issue, we've tried using a custom approval workflow instead of the default approval workflow.
    Kindly help.
    Edited by: 957679 on Sep 7, 2012 6:17 AM
    Edited by: 957679 on Sep 7, 2012 6:19 AM

    Hi ,
    I actually faced the same issue some time back .., it took me almost a week to resolve it ..
    This is happening basically due to incompatible version of wsm-policy-core.jar on your server . Please check all the FMW s/f installed on your server . One of them is incompatible with OIM 11.1.1.5.0 .
    Are you using BIP 11.1.1.6 by any chance .
    Thanks
    Suren

  • OIM 11gR2 - Out-of-the-box Approval Workflows

    Does anyone know of any good resources that describes the out-of-the-box approval/provisioning workflows of 11g R2? I have searched Google back and forth but found nothing. Some of the workflows are obvious by their name (such as default/BeneficiaryManagerApproval!1.0), but others are not so clear regarding their flows.
    On that same note, can one of the out-of-the-box approval workflows be configured to route to an approval group instead of single users?
    Thanks for your help!

    Instead of searching for docs in google i guess reverse-engineering on your own will be the best way to understand the approval workflows. Navigate to OIM_HOME/server/workflows/composites. It will contain all the approval workflow zip files. Unzip the required one which you want to understand and there will be a .jws file in it. Now open that in jdeveloper and open AprrovalProcess.bpel and composite.xml. It will show how the approval routes and what are the business rules written, everything. It is the best way to understand the approval workflows.
    In the same way u can make changes to the out-of-the-box approval workflows also. See this OBE tutorial to understand how you can assign the approval to a group
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/oim/oim_11g/Request_Workflow_for_Self_Registration/request_workflow_for_self_registration.htm
    Also please try the approval workflow given in the developer's guide which covers most of the basics.
    http://docs.oracle.com/cd/E27559_01/dev.1112/e27150/request.htm#CIHFBEFB

  • Handling Multiple Approval Workflows

    I have a scenario where documents need to be uploaded into SharePoint, triggering specific approval workflows depending on the destination of the uploaded document. I initially thought this could be done through one document library with a separate approval
    workflow set for specific folders within this document library. It now appears there is no easy solution for accomplishing this within one document library and multiple sub-folders, as the sub-folders inherit all workflows from the parent document library.
    As a SharePoint beginner I am unsure the best solution for this scenario. Should I be using something other then multiple document libraries to accomplish this task (this seems messy, thus why I tried to use one document library with multiple sub-folders)?
    Thanks for the help in advance.

    Hi Brian,
    I think this can be handled multiple ways but here are the 2 that came to my mind first.
    1. add a column to your doc lib that is a dropdown of all the sub folder names that they can upload to. Make it a required field so they need to fill it in on upload. then in your workflow you can lookup the value of that dropdown and write an if condition
    based on the dropdown selection to determine which approval to start.
    2. you might be able to use the substring functions that exist when building your workflow located under Action>Utility actions and then do a substring on the url path field to determine the subfolder that the doc was uploaded to.
    I am sure there are other ways to accomplish this without multiple document libraries. You could probably also do a taxonomy (similar to the way I said to do the dropdown) it probably depends if you would find it useful to have a taxonomy on your files
    Have fun! Let me know if this is useful and if you have any other questions, please let me know.
    Alex

  • Error auto-firing an approval workflow inside a project's workspace

    Hi all,
    I have activated the SS2010 Workflow in PWA site collection features in order to use an approval workflow in one of my project's workspace. I setup the workflow under "Project Documents" and select to auto-start upon an item's creation. However this doesn't happen and I always get an eventreceiver exception in Event log. It works as expected when I fire it manually. I am connected as the system account.
    Is this a known issue or is the log correct stating that a system account cannot trigger a workflow autostart (below)???
    Event log details:
    Error loading and running event receiver Microsoft.Office.Project.PWA.WSSEventReceivers.PSDBUpdater in Microsoft.Office.Project.Server.PWA,Version=14.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c. Additional information is below.
    : Value cannot be null.
    Parameter name: s
    ULS related lines:
    02/28/2010 23:55:04.38  w3wp.exe (0x071C)                        0x15DC SharePoint Foundation          Workflow Infrastructure        b9vu Unexpected Declarative workflows cannot automatically start if the triggering action was performed by System Account. Canceling workflow auto-start. List Id: %s, Item Id: %d, Workflow Association Id: %s 
    02/28/2010 23:55:04.62  w3wp.exe (0x071C)                        0x15DC SharePoint Foundation          General                        6875 Critical Error loading and running event receiver Microsoft.Office.Project.PWA.WSSEventReceivers.PSDBUpdater in Microsoft.Office.Project.Server.PWA,Version=14.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c. Additional information is below.  : Value cannot be null.  Parameter name: s 
    TIA,
    Tassos

    Tassos:
    You might have better response to this question here:
    http://social.technet.microsoft.com/Forums/en-US/project2010custprog/threads
    Gary Chefetz, MCITP, MCP, MVP msProjectExperts
    Project and Project ServerFAQs
    Project Server Help BLOG

  • OOB Approval Workflow Not Working as Expected

    I am using the OOB Approval Workflow with an InfoPath (Browser Based) form that is published to a form library. The form contains multiple options for approvers that route serially.  I open the form, fill it out, and submit it to the library. The
    approval workflow is set to automatically start when an item is created. When the first Item is created the it works correctly. The workflow's task status is "In Progress" and the workflow assigns a task to the person selected in the person/group
    picker on the Infopath form. 
    The issue is when I submit a second form to the library. The workflow automatically sets the the "Outcome" to "Rejected" and never assigns a task to the person selected in the person/group picker on the Infopath form. See below:

    check the ULS logs and share the more details why its auto rejected.
    you can configure the Diagnostic Log as verbose for Workflow.
    http://technet.microsoft.com/en-us/library/jj658588.aspx
    share the result.
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • Facing problem in integrating my custom jsp with the workflow engine

    Hi,
    I am using Jdeveloper 11.1.1.6.0 for BPM 11g implementation on my Application.I have Weblogic Server 10.3 Installed and configured the domain. Also the server is up and running.
    I am trying to create workflow and wants to integrate it with my custom jsp but i am facing problem in integrating my custom jsp with the workflow engine.Can you please answer the following questions:
    1)how to link BPM human task with my custom jsp (Requester jsp).
    2)how my custom jsp data(Requester data) will be stored in workflow engine and how the same data will be visible to the next custom jsp(Reviewer jsp).
    This is urgent .Any early reply will be great help.
    Thanks in advance.
    Edited by: 990133 on Mar 24, 2013 5:31 AM

    you forgot to add the usage dependency in the DC metadata section in your DC, you have to add the XSS~utils and fpm as a used DC's as part of your DC, try to add those, if you already done that, so check where missed the adding of used webdynpro components in any of the VAC's or FC's,
    Cheer,
    Appa

Maybe you are looking for

  • Ipad GPS question

    Does the ipad(wifi) has GPS?

  • OC4J 9.04 and JSF 1.1.0 problem

    Our problem scenario is related to JSF and OC4J. When an exception is generated that is not handled by our application and thrown to the web container, the user is redirected to an error page. If the user refreshes the error page then the whole appli

  • How to use the Rolling Edit in Premiere Elements 9?

    Hi there, I can't seem to find the rolling edit option in Premiere Elements 9. Is it still in the program or is it removed? And while we're at it, are the slip and the slide edit still in there? Thanks, Ronald

  • 10g Lite  SYNC Error  --   POL-3201 "Invalid Slot Number"

    Hi, I am Using Oracle Lite 10g R3, I am doing manual SYNC Process. Today I started the manual Sync Process i encountered the Error Message in the Screen "POL-3201 Invalid Slot Number" Oracle document States that POL-3201 Invalid slot number Cause: In

  • WRT110 suddenly stopped working

    A couple days ago I noticed that my wireless internet connection on my iPhone would cut in and out, then stopped all together. I also had no connection on my mac which is wired to the WRT110. I bypassed the WRT110 and then I had a connection on my Ma