Workflow for OWB. Abort inactive process

Hello to All!
I have some problem with stopping of inactive processflow. I usually use procedure WORKFLOW.WF_ENGINE.ABORTPROCESS and sometime i have bad results of working it procedure. Please help me kill inactive processflow (any guide, idea?).
Thanks for attention.

Thanks you for idea!
I have processflows:
ITEM_TYPE........ITEM_KEY...........................................INSTANCE_LABEL........ACTIVITY_STATUS
PHASE_ST.........WB_IK_20090306_134604_*670193*...........PHASE_ST_I..............ACTIVE
PHASE_ST.........WB_IK_20090306_134604_670193.............START1...................COMPLETE
PHASE_ST.........WB_IK_20090306_134604_670193.............PHASE01_I...............NOTIFIED
In Warehouse Builder Browser processflow "PHASE_ST_I" have status "Busy" (with red dagger in a white circle).
I ran script @<OWB-HOME>/owb/rtp/sql/deactivate_execution.sql *670193*
but it didn't give positive result.
Please, help me.

Similar Messages

  • Workflow for P.O release process.

    Hi Guys,
    As per the one of the thread I have done setting as per the below. Ref last 10 line for the details of the problem.
    Hi,
    1) Work flow: - Work flow is standard functionality of SAP.
    I give one example to u.
    In the case of purchase order creation, First purchase person create purchase order, then first purchase order approved by purchase head and then auditor approved purchase order on print of purchase order.
    With work flow you can send soft copy of purchase order to both person purchase head and auditor to approve your purchase order.
    Due to this your process for purchase material is faster then manual process.
    2) You can implement work flow in purchase order release strategy with below mention detail.
    For mail facility, you need to activate workflow for PO release procedure;
    *Go to SPRO > MM > Purchasing > Purchase Order > Release Procedure for Purchase Orders *
    Define Release Procedure for Purchase Orders > Release Codes >
    here assign Workflow indicator as "1" against each Release Code
    Now come to SPRO > MM > Purchasing > Purchase Order > Release Procedure for Purchase Orders >
    Define Release Procedure for Purchase Orders > Workflow >
    Here against each release code assign OT as US and respective User ID's for Release Codes.
    Now Go to OOCU > here under MM, go to MM-PUR,
    Now click on "activate event linking"
    Here open "WS 20000075" and for BUS2012 RELEASESTEPCREATED, click on Detailed view button
    Here activate "Event linkage activated" and also activate "Enable usage of event queue" and Save data.
    Same way and click on "Assign agents" and proceed all above steps.
    Now create a PO and check the SBWP for SAP Mail of respective Users
    This was the details given by the thread but now I have completed till
    OOCU > here under MM, go to MM-PUR,
    Now click on "activate event linking"
    Here open "WS 20000075" and for BUS2012 RELEASESTEPCREATED, click on Detailed view button
    Here activate "Event linkage activated" and also activate "Enable usage of event queue" and Save data.
    For proceeding futher as said in the above procedure. I am getting User ID inside WS20000075 when I click on Assign Agents but I am not getting the details button to repeate the step as said.
    Please let me know whatever I have done is enough to get the mail or is there any thing else need to be done.
    Thanks
    Dhanu

    Hi,
    release code and release group should be assigned in the authorization object for the approving authorities.
    apart from this the settings looks ok and it will work

  • Workflow for Predefined Performance Management Process

    Hi All,
    We are in process of implementing Predefined Performance Management to our client, as I know we donu2019t have workflow for predefined performance management, but I saw below thread:
    Performance Management Process - Workflow between participants
    Please give me more clarification about configuration of Workflow for PMP, we need e-mail notifications only when ever manager is going to do some status change like approve planning phase, reject planning phase etc.
    We are expecting these notifications not through portal only employees e-mail account, can you tell me where the location of the configuration is?
    Thanks in advance.
    -Abhi

    Hi,
    The pre-defined is not ment for changing by anyone. The template is generated and the settings are as is. You would need to go to the phap_catalog to change the template (but that option is disabled for PMP templates). Theoritically you would need to change the status flow tab and select the correct workflow there. The information workflow is standard delivered for use in the flexible one.
    So, yes you probably are able with tricks to get it working in PMP but it is not supported by SAP.
    Regards and Groetjes,
    Maurice Hagen

  • Which version of Oracle workflow is required for owb 11.2 process flow.

    Hi,
    I want to implement process flow for my mapping.
    But I am getting error as,
    "The connection was succesful but failed to retrive workflow version."
    Also OWF_MGR user is not created.
    Database is oracle 11g on RHEL
    and standalone OWB 11.2 on Windows.
    Do I need to create user owf_mgr which have schema for workflow objects?
    Also which version of oracle workflow required for process flow. Do I need to install
    Oracle Workflow server at Oracle db server or it ll get installed with 11g.
    Where I ll get the details steps to implement process flow from scratch.
    Please help.
    Edited by: TN on 21 Nov, 2011 6:01 AM

    Hi,
    I checked in dba_user and do not find owf_mgr in it so I created owf_user and grant himexecute any procedure and a role owb_user.
    When I did not get table wf_resources in owf_mgr schema, I try to run wfinstall.bat on stand alone owb 11.2.
    But I got the following error,
    ORA-00942: table or view does not exist and execution terminated.
    Details from log file is as,
    Workflow Configuration Assistant 2.6.4.0.0 - Windows Vista
    WFCA Version: : WorkflowCA.java 26.106 2005/06/29 04:33
    WorkflowCA:
    WorkflowCA: Workflow Configuration in progress...
    WorkflowCA: Tue Jan 03 13:07:02 IST 2012
    WorkflowCA:
    WorkflowCA: Screen width -1366-, screen height -768-
    WorkflowCA:
    WorkflowCA: Graphics User Interface mode
    WorkflowCA:
    WorkflowCA:
    WorkflowCA: Start testing connection, which takes less than 3 minutes.
    WorkflowCA:
    WorkflowCA: Account connection test for SYS
    WorkflowCA: SYS account connects successfully.
    WorkflowCA: Embedded Workflow check completed successfully
    WorkflowCA: Workflow schema already exist, Workflow Configuration Assistant will upgrade existing schema instead.
    WorkflowCA:
    WorkflowCA: Account connection test for Workflow
    WorkflowCA: Workflowaccount connects successfully.
    WorkflowCA:
    WorkflowCA: Checking existing Workflow version
    java.sql.SQLException: ORA-00942: table or view does not exist
    Please help.

  • Need to find a workflow for the following business process

    dear expert:
    as we have SD,MM,PP for multiple plant and everybodys work is interdependent with others we find highly challenging to make it synchronised. to manage the situation i thought if we can create an workflow where every event of individual person will trigger and send notification to other members to start his job. the following is a scenerio where i tried to show the sequence of work and respective user module as responsible. please suggest is there any workflow to control the same in sap.
    Style     
    Color     
    FG create     SD
    Customer info record     SD
    Pricing master     SD
    Ref. Bom     SD
    Contract     SD
    Create Sales order     SD
    Create PP matetial (Cut Pnl, Print Pnl, Emb Pnl, Sweing gmt)     PP
    Create PP BOM(Create different BOM for Dfferent Material)     PP
    Create Routing     PP
    MRP run     PP
    Purchase Requisition     MM
    Purchase Order     MM

    Dear,
    If you have ABAP team with you, an email to user SAP inbox will trigger from each transaction.
    We implemented this for PR level for each 1200 individual user / management release authorities, which informs by an email about the status of PR. once the final release done based on purchase group - an email will trigger to central procurement department all responsible persons indicating purchase order awaiting.
    NOW material rejection - reference to 122 and 102 movement is under study. Once any material rejected the system send email to procurement, stores personnel and management informing the material was rejected.
    Similar, based on the presentations and indepth meeting held with ABAP and FUNCTIONAL teams, workflow can be trigger on each event (not sure the all processes you mentioned in your post). But I hope possibility exists.
    THE ONLY POINT YOU SHOULD KEEP IN MIND AND INFORM MANAGEMENT - SYSTEM PERFORMANCE WILL AFFECT A LOT. SYSTEM WILL SLOW DOWN AS MANY WORKFLOWS EXISTS. CONSULT BASIS TEAM ALSO.
    Regards,
    Syed Hussain.

  • PO Workflow for release strategy approval process (BUS2012)

    Hi Experts,
    I have configured a workflow that should get triggered by the event "RELEASESTEPCREATED" in the Business Object BUS2012.
    The workflow is triggering perfectly and is working exactly as per the requirement, but the problem I am facing is the event "RELEASESTEPCREATED" is getting triggered twice.
    I went to SWEL and saw that the above event is getting triggered twice by the system. I am not calling the event in any user exit. I have de-activated the event linkage in the standard workflow. Only my custom workflow link is active.
    Due to this all my workitems, mails are getting duplicated as the workflow is being called twice.
    I just need to know, why the event is getting triggered twice in the system.
    If you need more details in the issue, I will provide that.
    Your help is highly appreciated. Points will be awarded to the helpful answers.
    Thanks
    Anirban

    Hello,
    First off a small comment on terminology because a lot of people say this:
    Events are not triggered, they are raised or published by the application (regardless of workflow). An event is the trigger for a workflow.
    Now we have that cleared up, have a look at the workflows that are triggered by your events and check the container to determine the release codes for each workflow. It seems to me like you are probably processing two different release codes at the same time. This could be perfectly normal (e.g. you may want to perform two approvals at the same time) and is controlled by the MM config for the release strategy. If this is not what you want then this should be adjusted by your friendly MM people.
    Cheers,
    Mike

  • Standard workflow for SO approval process in CRM

    Hi all
    I would like to know if there is any standard workflow for Sales order approval process. I have tried my best and couldnt come across any.
    And also what is the commonly used approval process?
    Thanks & Regards
    Mui Kanva

    Hi
    check workflows: WS10000279 and WS10001068 (aut approval).
    But we created our own schema to implement two step approval.
    Regards
    Radek

  • Issue in Process Controlled workflow for Shopping cart in Quality system.

    Hello All,
    I ahve configured a Process controlled workflow in SRM 7.0  with custom resolver, and I am facing an issue taht the Workflow works well in Development but in Quality the approvers are dropped after SC is ordered in Quality system.
    The SC Workflow drops the approvers picked up from the Interface  method /SAPSRM/IF_EX_WF_RESP_RESOLVERGET_AREA_TO_ITEM_MAP and IF_EX_WF_RESP_RESOLVERGET_APPROVERS_BY_AREA_GUID of BADI /SAPSRM/BD_WF_RESP_RESOLVER. The approvers can be seen in the shopping cart Approval preview Tab until the SC is ordered.
    I have compared the OSS notes relevant for Workflow, all of them have been transported, Also I compared and checked general Workflow settings, BRF Config and  Process level  settings in Dev and Quality, everything is same.
    Also while debugging; the approvers can be seen in the decision set table in the create_process_forecast method of class /SAPSRM/CL_WF_PROCESS_MANAGER.
    Kindly let me know what else i can check to find the root cause.
    Thank you in advance for help!
    Regards
    Prasuna.

    Hello Vinita;
    Thanks for the input and sorry for the not so "ASAP" reply;
    From what I'm seeing in from your 2 screenshot, i strongly believe that the problem is even before the Z implementation /SAPSRM/IF_EX_WF_RESP_RESOLVER~GET_APPROVERS_BY_AREA_GUID (in which the FM i ZSRM_GET_USER_FROM_PGRP is called. I think the problem could be in the process level determination  ZSRM_WF_BRF_0EXP000_SC_APP100. Let me explain:
    In your  cases where not buyer is determined,  in the approval tab there is not even a process level for buyer approval. If the problem were indeed in the implementation  /SAPSRM/IF_EX_WF_RESP_RESOLVER~GET_APPROVERS_BY_AREA_GUID  then the process level would be there, but the system will display, instead of the name of the buyer(if the buyer determination fails) a red label with the message:  "With the strategy "Buyer determination" an approver could not be determined (or something like that..please check the image at the end of the text)".
    I can propose a way to discard this: Implement the method /SAPSRM/IF_EX_WF_RESP_RESOLVER~GET_FALLBACK_AGENTS of class ZCL_BADI_SC_WC (in case you didn't know, in this method you can specify an "default" approver in case that the determination of approver in GET_APPROVERS_BY_AREA_GUID fails). The idea is to specify an default approval and see how it behaves:
    If the user you indicated in the method GET_FALLBACK_AGENTS appears as approver, then yes, the problem is arises from implementation GET_APPROVERS_BY_AREA_GUID, in which case it could be a data problem (peharps in pposa_bbp?). You could also check in TX SU53 with the users with this problem to see if there's a missing authorization objetc.
    If, in the other hand, the "default" approver is not shown, it means that the process level buyer determination is not even called, so you should check in more detail ZSRM_WF_BRF_0EXP000_SC_APP100 and /SAPSRM/CL_WF_PROCESS_MANAGER > Determine process restart –method ----- (i have never used this method, so i could not tell if  it could be the source of the problem).
    Also, you could implement the method GET_FALLBACK_AGENTS in this way so the default approver would be the WF administrator indicated in the customizing (or you could just append directly any user you want):
    METHOD /SAPSRM/IF_EX_WF_RESP_RESOLVER~GET_FALLBACK_AGENTS.
       DATA: lv_admin_expr TYPE swd_shead-admin_expr,
             lv_admin      TYPE swd_shead-wfi_admin,
             lv_admin_type TYPE sy-input,
             ls_agent      TYPE  /sapsrm/s_wf_approver.
       CALL FUNCTION 'SWD_WF_DEFINITION_ADMIN_GET'
         IMPORTING
           default_admin_expr = lv_admin_expr
           default_admin      = lv_admin
           default_admin_type = lv_admin_type.
       ls_agent-approver_id = lv_admin.
       APPEND ls_agent TO rt_agent.
    ENDMETHOD.
    Error of agent determination:
    Please let me know the result of the test with the implementation of method GET_FALLBACK_AGENT. By doing this we could ensure if really the problem is in method GET_APPROVERS_BY_AREA_GUID or before.  I just made the test in our system and I'm almost sure that you wont get the default approver, but i could be wrong. 
    Any question please let me know.
    Best regards
    Cristian R.

  • Error while deploying a workflow in OWB

    Hi,
    I am getting the below error while deploying a workflow in Control Center.
    ORA-29532: Java call terminated by uncaught Java exception: java.sql.SQLException: The file /u01/app/oracle/product/11.2.0.2/dbhome_1/owb/bin/admin/rtrepos.properties cannot be accessed or has not been properly created on the server XXXXXX. If the file does not exist or if the database owner (normally user 'oracle') does not have the required file permissions or if the file has not been properly created then the file can be recreated by running the SQL*Plus script /u01/app/oracle/product/11.2.0.2/dbhome_1/owb/rtp/sql/reset_repository.sql (in a RAC environment the file must be manually copied to each server which is used for OWB). Otherwise if using a 10.2 database instance, then please run the SQL*Plus script /u01/app/oracle/product/11.2.0.2/dbhome_1/owb/UnifiedRepos/reset_owbcc_home.sql.
    Did any one faced this issue before?
    Kindly let me know the steps to resolve the issue.
    Thanks.

    Hi Vidyanand,
    Did you create the runtime access user using the runtime assistant? Did you select the correct runtime repository (if you have more) to associate your runtime access user with?
    Note that there are 4 database roles being created when you create a runtime repository owner:
    - OWB_A_<runtime repository owner>
    - OWB_D_<runtime repository owner>
    - OWB_R_<runtime repository owner>
    - OWB_U_<runtime repository owner>
    If you would grant those roles to a user, then that user becomes an access user for the user with username <runtime repository owner>.
    Note that you can also use the runtime repository credentials to connect to the runtime repository for deployment purposes, but you may not want that because of security concerns.
    Thanks,
    Mark.

  • Workflow for Sales Order Release via Status Profile

    Dear all,
    i want to make a workflow for sales order which have 4 User Status in One status profile.
    Once Event triggered for sales order
    1.   Mail should go to main authority with sales order number.
    2.  Once authority will do some changes in the required field then he/she changes
         the user status-1 from defauts as per line Item and mail should go to department no-1 (Head authority).
    3.  Once again same changes in sales order but now user status-2 from user status-1
         as per line Item and mail should go to department no-2 (Head authority).
    4.  Once again same changes in sales order but now user status-3 from user status-2
         as per line Item and mail should go to department no-3 (Head authority).
    5.  Once again same changes in sales order but now user status-4 from user status-3
         as per line Item and mail should go to department no-4 (Head authority) .
    and parrally for each changes of Status mail should also go to User (Event Creator).
    6. Finally mail sholud go to User as you are permitted to do next business transaction for this sales order
    Please tel me the process as i am very new this topic and i am always going to stuck in Binding.
    please help me out.
    Thank You

    Hi Neeraj,
    First of all start with SWELS and SWEL T-Code to check if any standard event is getting triggered or not. If event is getting triggered, then use the same event to trigger the workflow; otherwise create a custom event of BO and use the same to trigger the workflow.
    Hope you are aware of T-Code SWO1 and delegation of BO. The BO used for your requirement will be BUS2000115.
    As you want the workflow to get triggered only for one status profile and one of its status, so use check function module. There set the condition for you status profile and status.
    The FM which you will be using the most is CRM_ORDER_READ. To read the status, you can also use CRM_STATUS_READ_OW.
    Now simply make the approval steps in the workflow using activity. In the activity, you can use the standard method USERSTATUSPOPUP to send the workitem for approval. In each step use the same activity with different agents as approvers.
    Just go with these things and let me know if you get stuck up somewhere.
    Regards,
    Guddan

  • Duplicated workflows  for fast triggering event from CRM

    Hello,
    I'm facing an issue when a credit limit sales order is created in CRM.
    They are creating the order and manking a change to it 5 seconds later. Those created and changed events are triggered with a difference of 5 seconds and in background, the first WF is triggered (with the created event) and 5 seconds later other instance of that WF is triggered (with the changed event).
    The problem is that the first WF is not being logically deleted when the seconds one is created (it has a wait step at the beggining of the WF to end in case another instancer of the WF is triggered).
    This is caused by a perfoirmance issue that when the seconds WF is triggered, the first one is still not listening to the changed event.
    Do you know if there's any way to solve this?
    Thanks!

    Hi MatiasAZ,
    In the first workflow(created) check the event. It should be the 'changed' event and proper binding should be there.
    If everything is fine, after the wait for event create a process control with the option as 'Complete workflow'.
    Initially your workflow should have the fork step type with two branches. Maintain the changed event wait step in one branch and created events step in other branch. So that the workflow will wait for 'Changed' event and workflow will be completed if the 'Changed' event occurs in the system.
    Thanks,
    Viji.

  • How to schedule a workflow for recurring executions: The solution

    Scheduling a workflow for recurring execution has been long awaited in WFA, perhaps from 2.0 time. The following document shows how to get it done. I've also explained the logic behind it. It’s very simple to use, meets every requirement which one can have from a scheduler and of course highly flexible. Let's go!! The Real stuff. What is this? Is this actually a scheduler? No. This is actually a command in your workflow, but a special 'magical' command. This 'magical' command logic is built using the answers for the following questions: Can a workflow be scheduled for a delayed execution in a future time? Yes, but only one execution instance. If you want the next execution, execute the workflow again providing the same set of inputs and the execution date/time.During workflow execution, can a command inside a workflow get to know what is the  name of the workflow? YesDuring workflow execution, can the command know what is the job execution id? YesIs there any programmatic interface available to know what are the user input provided or a particular job execution? YesCan a command inside a workflow trigger another workflow? Yes.Can a command inside the same workflow trigger itself? Absolutely yes. I've ticked all boxes needed to build such a solution. The solution is to make the workflow a smart workflow, so smart that it can schedule itself for the next execution. It no longer needs any other task scheduler to tigger it. WFA provides a large set of REST APIs for other 3rd part SW integration. But I  also can make  good use of these APIs to make smart workflows. I have always believed that WFA should not only be seen as a framework for automating Storage boxes or server, but just about any task( inside a computer of course) which is done manually. WFA is an awesome product indeed.  So this is a command called "Workflow Scheduler" which  you can put in your workflow as another command. Prerequisites: You need PowerShell 3.0 on your WFA server. I certainly could have done it for PoSH2.0 as well, but life for web interfaces  using PowerShell is so much easier with Posh3.0. Posh3.0 is a big jump from 2.0. WFA is fully supported to work on Posh3.0. Its available by default in Win2012, Win2008 can be upgraded, Win2003 users can't use it. Add credentials of a WFA Admin/Architect in you WFA itself with Name/IP: localhost Match: ExactType: OtherName/IP: localhostUsername: <WFA Admin/Architect Username>Password: <User Password>   3.  Minimum WFA version 2.2. This is only needed for Importing the dar. I've provided the command code in text too. The command code is the real deal. How to use it? If you have a workflow which you want for recurring executions, just add this command "Workflow Scheduler" in it. The command takes parameters for the workflow execution intervals. For example minsInterval for executing this workflow every x minutes, or daysInterval for executing the workflow etc.Now just like a normal workflow execution execute this workflow deciding what is the trigger time. Example: Suppose you want the execution every day at 10:00 PM.So provide daysInterval = 1 And execute the workflow for a delayed execution at 10:00 PM. You can pick the day to start as you wish. The workflow will execute at 10:00 PM and when this execution reaches our magical command "workflow scheduler", this command will trigger the same workflow  with same set of inputs for the next execution at 10:00 PM tomorrow. And so on an so forth. I’ve attached a very simple example workflow here to help you understand. An Example of a workflow scheduled for recurring execution Daily at 11:30 PM starting 10-March-2015     How to stop/suspend this recurring execution? Easy. You just abort the next scheduled job execution in Execution=> Execution Status. The cycle will stop. How to resume it? Easy again. Just resume the same aborted job. The cycle restarts. Can I change the schedule execution time? Yes. After aborting the current execution, you can resume the same workflow at a new time. Execution interval can't be modified as you can't change the command parameters. But the recurring execution now can occur at a new time. Where or which position to place this “workflow scheduler” command in your workflow? At the beginning ? At the end? Or somewhere in the middle. This completely depends on your choice. See some below cases. You don't want the next job execution scheduling to happen if any of the commands in my current workflow execution fails: Put command “workflow scheduler” in the end. It will trigger the schedule of the next job execution only when all real original commands of your workflow have passed. else not.     You want continuous job executions irrespective of the workflow command failures: Put it in the beginning. It will trigger the schedule for next execution before any of the actual command begin executing.     You want an approval before the next execution job is scheduled: Add an approval point before the comamnd.           So it’s all left to you.      Can an operator decide the execution schedule? Yes, but which workflows will be available to him/her for this recurring execution will have to be decided by the designer. This is a good thing to have as it serves for access control in a way. The Architect/Admin can now restrict which workflow can be put for recurring executions. Operators can’t execute just any workflow available to him for automatic recurring execution. And the workflow designer can also choose which scheduling parameter is to be made a variable for the operator. For example the designer want the operator to schedule a given workflow only for weeks Interval and not months or days i.e. he/she can only chose to schedule for weekly, biweekly etc. executions and  nothing else. For this the designer can define a User-Input variable only for weeksInterval parameter. It’s Done. You want workflow execution to be scheduled either for daily or once in 2 days but not any other. You can restrict this. Or he/she wants to give full freedom to the operator make his/her own decision about scheduling, he defined user-input variable for all scheduling parameters. The workflow designer wants weekly schedule but the day should not be a weekday: You can even do this. Is this flexible enough for my requirements? I’ve attached the very command code. You can modify the command as per your requirements. Suppose you want daily execution of a certain workflow at 10:00 PM but skip a day of execution if the day is a Monday. Modify the code check for the day and add another day if it’s a Monday. Its posh code and highly readable. So you can see how this can be used in a  variety of ways. This is the beauty of a programmatic solution. Its highly flexible, it allows users to design solution based on their requirements. Flexibility is the heart & soul of WFA. Thats why I like it. I have a workflow but I don't want to modify it by adding a new command in it. Can I still use this solution? Yes but with WFA 3.0 on wards. WFA3.0 allows to create modular workflows. Create a parent workflow with you actual workflow as a child workflow in it. Add our “workflow scheduler” command too. So now you don't need to touch your existing workflow. I've attached a workflow example here.   Have fun!! sinhaa  

    Providing a new version 1.1.0 of the command "WFA Schedular" Changes made: Added conditional String Representation based on the Scheduling parameter provided. Provided check for the right number of parameters passed into the command.Added a new parameter "Expiry Date" to automatically stop the recurring execution upon expiry.Check for Posh3.0 version in code.Have Fun!! sinhaa Below example for:Schedule a workflow for recurring execution every alternate day i.e. once in 2 days at 10:30 PM starting 06-Jul-2015 (Today's date is 02-Jul-2015) . The recurring workflow execution  should expire on 31-Dec-2015 and stop.  

  • Regd Workflow for a new custom page

    HI ,
    We have created 2 pages for some functionality where in user can login n serach for a person and update certain attributes like his source/company, assignment category etc.
    First page he can searach the person and after search results come in, he can click on a link and go to the next page where he can edit the attributes n submit.
    Now after updating and submitting the page, we have a reqt to send notifications to the initiator in case the user has approved the txn or rejected or sent for correction. But we dont know how to achive it with the 2 pages n no workflow.
    How to launch a workflow for this ?
    or is there a way we can send notification from backend without using workflow n it shud still come in the worklist of a person.
    Regards,
    Preeti

    Hi Preeti
    DECLARE
    l_itemtype VARCHAR2(30) := 'XX_TEST';
    l_itemkey VARCHAR2(300) := 'TEST';
    BEGIN
    Begin
    wf_engine.createprocess(l_itemtype, l_itemkey, 'XX_MAIN_TEST');
    Exception
    when others then
    dbms_output.put_line('Error in create process:' sqlerrm);
    End;
    BEGIN
    wf_engine.setitemuserkey(itemtype => l_itemtype
    ,itemkey => l_itemkey
    ,userkey => 'USERKEY: ' l_itemkey);
    EXCEPTION
    when others then
    dbms_output.put_line('Error in set userkey process:' sqlerrm);
    END;
    BEGIN
    wf_engine.setitemowner(itemtype => l_itemtype
    ,itemkey => l_itemkey
    ,owner => 'SYSADMIN');
    EXCEPTION
    when others then
    dbms_output.put_line('Error in set owner process:' sqlerrm);
    END;
    BEGIN
    wf_engine.startprocess(l_itemtype, l_itemkey);
    dbms_output.put_line('Process started');
    commit;
    EXCEPTION
    when others then
    dbms_output.put_line('Error in set owner process:' sqlerrm);
    END;
    END;These are the details of the functions used
    1> wf_engine.createprocess
    This API creates a new runtime instance of the workflow process, Pass the item type and item key for the workflow.
    2> wf_engine.setitemuserkey
    Use this API to mark the new runtime instance of the workflow process with an
    end–user key
    3> wf_engine.SetItemAttrText
    Use this API to set values for the item type attributes defined for workflow process .E.g.: Email ID, Description defined in the workflow.
    4> wf_engine.setitemowner
    Use this API to set the value of owner (Of Workflow)
    5> wf_core.context
    In case of exception, it will help in locating source of an error.
    6> wf_engine.startprocess
    Use this API to invoke the workflow for the item type and item key specified.
    Ajay

  • Approval workflow for creation of organization

    Hi,
    I need to configure an approval workflow for the creation of organization. When the admin tries to create a new org, the approval should go to a admin group. The org should get created only once approval is done. I have configured an approval workflow for the Xellerate Organization resource object. I have created an unconditional task where the assignment tab has the admin group. When I test it, the org gets created without going through the approval process. Could someone please tell me what am I missing?
    Thanks,
    Supreetha
    Edited by: Supreetha on Jan 22, 2011 8:38 AM

    You'll have to raise request for Dummy Organization. It's Order for Organization so will not appear for user.
    I am not sure the full flow/complete requirement of your.
    APMU, you want approval while creating Organization into OIM.
    This is not possible OOTb when you create ORg in OIM.
    You'll create 1 dummy Org
    1 Dummy RO "OFO".
    Attach one Object Form with this RO.
    Raise request for Dummy Org and Give the name of Org on the object form for which you want approval.
    In the provisioning workflow, use OIM API to create Org into OIM.
    Done !!!

  • Oracle 10g Too Many INACTIVE Processes in V$SESSION

    Help.
    I have a 10g Catelogue database that I use only for RMAN backups for other databases, it
    sits on a Windows 2003 server.
    My problem is that it is generating a lot of INACTIVE processes for user SYSMAN to such an
    extent I had to increase the processes to 600 from 150 (SQL&gt; Alter System Set Processes=600
    Scope=spfile;), but by the rate the INACTIVE processes are coming I get database connection
    errors and memory errors after a few minutes/hrs after restarting the database.
    SQL&gt; select count(*), username, status, state
    2 from v$session
    3 group by username,status,state
    4 /
    COUNT() USERNAME STATUS STATE*
    2 SYS ACTIVE WAITED SHORT TIME
    15 ACTIVE WAITING
    234 SYSMAN INACTIVE WAITING
    SYSMAN has about 234 INACTIVE processes above, but that figures rises sharply. After some
    moments (1 hour) when I try to run the select statement again I get:
    SQL&gt; /
    from v$session
    ERROR at line 2:
    ORA-04030: out of process memory when trying to allocate 123404 bytes (QERGH
    hash-agg,kllcqas:kllsltba)
    When I exit SQLPLUS and try to login I get this
    C:\&gt;sqlplus
    SQL*Plus: Release 10.2.0.1.0 - Production on Wed Oct 8 12:55:14 2008
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Enter user-name: / as sysdba
    ERROR:
    ORA-12560: TNS:protocol adapter error
    Enter user-name:
    So I have to restart the database.
    Help me solve my problem.
    Regards,
    Kevin

    These are the EVENTS and it seems they have the same count and also they constitute the majority
    SELECT count(), event*
    FROM v$session_event
    WHERE SID in (Select SID From V$SESSION WHERE USERNAME = 'SYSMAN' AND Status = 'INACTIVE')
    GROUP BY event
    ORDER BY Event
    COUNT() EVENT*
    309 SQL*Net break/reset to client
    309 SQL*Net message from client
    309 SQL*Net message to client
    309 control file sequential read
    16 log file sync
    The method of the RMAN backup:
    I'm using windows scheduler to run RMAN scripts with a command like:
    rman target / @livedb catalog / @catalogdb backup database;
    Regards,
    Kevin

Maybe you are looking for