Workflow From Role.

Hi all,
In some cases in Irecruitement i am getting From role as <Please Enter>. I have to replace it with Some standard name like 'HR Team'. How can i achieve it.
I tried it by creating a adhoc user. But it is of no use. Should the From role should definetly be an employee of the organization. Can i randomly create a adhoc_user and use it?
Regards,
Pradeep

Hi Pradeep,
The 'From Role' which you mentioned is for notification? If its for notification you can specify the 'From role' as below.
wf_engine.SetItemAttrText(<itemType>, <itemKey>, 'FROM_ROLE', '<role name>');
The From value will be shown as display name of the role.

Similar Messages

  • Start OWB workflow from APEX

    Hi together,
    My challenge is to start an OWB workflow from an apex procedure.
    Procedure:
    declare
    numb number;
    audit_id number;
    begin
    numb := rtruser_blueprint.exec_api.execute('LOC_A014_OWF_MGR', 'PROCESS', 'LOAD_CALM_DELIVERY', ',', 'DELIVERY_ID_IN=6', audit_id);
    end;
    My problem is the following error:
    ORA-06565: cannot execute SET ROLE from within stored procedure
    This error occures at the following row in the execute-Procedure in the package exec_api (standard owb execution package):
    dbms_session.SET_ROLE('OWB_D_rtr10201_blueprint');
    dbms_session.SET_ROLE('OWB_O_rtr10201_blueprint');
    If I run this script directly with sqlplus, the procedure works fine. As a result of this, I assume, the problem has to do with the grants which the apex execution user (APEX_PUBLIC_USER) doesn't have in contrast to the blueprint user (which is schema owner)
    More informations about the environment setup:
    The apex workspace is bound to the database - user: BLUEPRINT.
    BLUEPRINT has the grant to execute the procedure 'EXECUTE' in the package 'EXEC_API'. The 'EXEC_API' package belongs to the user 'RTRUSER_BLUEPRINT'.
    My concrete question is: Which rights / grants does which user need to execute the procedure directly from APEX?
    Thanks for your help!
    Mirco

    What account were you using when you ran the 'execute_api' procedure from SqlPlus ? Also, all SQL and PL/SQL from APEX is executed as the application's parsing schema id and not the schema used by APEX to connect to the database.

  • Issue Transporting Business workflow from one System to Another

    Hi All,
    As there are many limitations in Import/Export of Workflow I'm going for a Transport of Workflow from one sytem to another.
    There are some query's reagrding transporting of the Business Workflow through Transport Request.
    1)   How can get the Transport Request no. of the Workflow to be transported? (As there are no direct versions displayed from  menu).
    2)   If there are any dependent objects first how to find the dependent objects lof workflow like if  any data element, Domain, Table, Structure (if these objects are used in your WF definition or may be BOR method), Function module, function group BOR, Rule, WF template, task and Task assignment  ?
    3) How to get Transport Request no. of such dependent objects specifically The Task,Rule , WF template etc.?
    4) I have object Type ZBUS2081 related to it how can i get its TR ?
    Please describe as I'm new to workflow.
    Please identify if there can be some issues after transporting workflow .
    Regards,
    Ujjwal

    Hi Ujjwal,
    Please find the below hint's.
    1. Regarding the objects included in the Transport request check the Tables - E070*.
    2. For dependent objects, you should check the workflow template. You have to check all the Task's and in the task go to
       utilities ---> Object directory entry --> Lock overview . Here you can see the request. It will show you the current request for    the Task.
    3. To get the TR for Business object, Go to basic data ---> Transport data --> Here you can see the Request ID for the business object.
    Thanks,
    Viji.

  • From which table we can find the stuck process in workflow from background

    Hi There,
    from which table we can find the stuck process
    in workflow from background.
    i mean the table which store information about going on process.
    It's Urgent
    Thank's
    Bachan
    Message was edited by:
    Bachan

    You can also run "bde_wf_item.sql" script.
    Note: 187071.1 - bde_wf_item.sql - Runtime Data of a Single Workflow Item
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=187071.1
    "Oracle Workflow Cartridge (WF): Workflow Item Details Data Collection Test" should be also helpful.
    Note: 369576.1 - Oracle Workflow Cartridge Workflow Item Details Data Collection Test
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=369576.1

  • Users are not removed from role using UME API

    Hello,
    I am using this code to remove users from a batch of roles that I have.
    Everything is running OK, no exception is thrown and at the System.out I see all the actions that needs to be taken correctly. The problem is that if I'll go later to one of the roles the users are still assigned to it. Any idea what I'm doing wrong here?
    try
    IRoleFactory roles = UMFactory.getRoleFactory();
    IUserFactory users = UMFactory.getUserFactory();
    IRoleSearchFilter filter = roles.getRoleSearchFilter();
    filter.setUniqueName("<My_filter>", ISearchAttribute.LIKE_OPERATOR, false);
    ISearchResult sresult = roles.searchRoles(filter);
    if ( sresult.getState() == ISearchResult.SEARCH_RESULT_OK )
         while(sresult.hasNext())
         String id = (String)sresult.next();
         IRole role = UMFactory.getRoleFactory().getMutableRole(id);
         Iterator i = role.getUserMembers(false);
         while (i.hasNext())
                         String uid = (String)i.next();
              IUser user = users.getUser(uid);
              role.removeUserMember(user.getUniqueName());
              System.out.println("Removed user: " + user.getUniqueName() + " from role: " + role.getDisplayName());
         role.save();
         role.commit();
    catch (Exception e)
         manager.reportException(new WDNonFatalException(e), false);

    Solved it!
    It needs the FQDN User ID...

  • Starting Workflow from Generic Object Services

    Hi All.
    We are on ECC6. In transaction MM02 when I excute 'Start Workflow' from Generic Object Services, no workflows are found. Can anyone help me with the following issues;
    1. What is the underlying object in transaction MM02 (I believe it is BUS1001006)
    2. How can i ensure that the proper workflows in this transcation are started through some  
        customisation, enhencement or user-exit.
    Regards.

    I think you have to maintain the Workflow Template as General Task and then only it will appear in the GOS.
    Thanks
    Arghadip

  • Call workflow from ABAP program

    created a zbusiness object (ZPRODH)with
    one key field product hierarchy,
    one attribute level number and
    one method display.
    I tested that zobject and using this object created workflow to display product hierarchy ,it is displaying it. now I have to call it from one abap program.
    In the abap program I am calling the funcion module, I
    CALL FUNCTION 'SWW_WI_START_SIMPLE'
    EXPORTING
    TASK = TASK
    IMPORTING
    WI_ID = WI_ID
    TABLES
    AGENTS = AGENTS
    WI_CONTAINER = WI_CONTAINER.
    It is calling the workflow and subrc is 0, but not passing the value to the workflow. Because of that the method is not working, any idea?
    Thanks in advance

    ttpa,
    Please check this thread:
    Re: Workflow from abap program
    Also check that your Fm do requires any explicit commit or not?
    Hope it will help u
    Cheers
    Jai

  • Setting Workflow status not working in imported workflow from SPD to Visual Studio

    Hi all,
    I have created SPD workflow and imported in visual studio. When I deploy imported Workflow using visual studio feature I found that Setting Workflow Status action is not working. Do I need to change Set Workflow status activity in Visual studio to make it
    work.
    Rohit Pasrija

    Hi,
    According to your post, my understanding is that Setting Workflow status did not work in imported workflow from SharePoint Designer to Visual Studio.
    I try to reproduce the issue and the result is the same as yours.
    After I import the workflow, choose the .xoml file, the view is as below:
    To troubleshooting the issue, I add a new item to the project and select “Sequential Workflow” in the template.
    After I click the Tool, I find that there don’t have the “SetCustomWorkflowStatus1” activity.
    To set the status of the state, we need to use the “Set State” Activity in the “SharePoint Workflow” toolbar.
    That is the reason why the “SetCustomWorkflowStatus1” activity does no work.
    More information:
    Apply Custom Values to Visual Studio Workflow Statuses
    Thanks,
    Linda Li                
    Forum Support
    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]
    Linda Li
    TechNet Community Support

  • HOW TO TRIGGER AN WORKFLOW FROM A PROGRAM ?

    HELLO THERE ,
    CAN ANYBODY PLZ TELL ME HOW TO TRIGGER AN WORKFLOW FROM AN PROGRAM AND TO PAS THE VALUE TO THE CONTAINER ?

    Hello Neon,
    If you want to trigger the workflow directly, use the FM, SWU_START_WORKFLOW
    CALL FUNCTION 'SWU_START_WORKFLOW'
      EXPORTING
        task                  =
    *   LANGUAGE              = SY-LANGU
        user                  =
    *   SENDER_ID             =
    * IMPORTING
    *   RETURN_CODE           =
    *   WORKITEM_ID           =
      tables
    *   CONTAINER             =
    *   MESSAGE_LINES         =
        attachment_list       =
    A workflow can also be triggered by and event which is in turn triggered by a program.
    By the FM, SWE_CREATE_EVENT
    Example:
    w_key = 'Connie'.
      w_creator-otype = 'US'.
      w_creator-objid = 'SAPDEV02'.
      CALL FUNCTION 'SWE_EVENT_CREATE'
        EXPORTING
          objtype                       = 'YH_BUDDIES'
          objkey                        = w_key
          event                         = 'event'
         creator                        = w_creator
    *     TAKE_WORKITEM_REQUESTER       = ' '
    *     START_WITH_DELAY              = ' '
    *     START_RECFB_SYNCHRON          = ' '
    *     NO_COMMIT_FOR_QUEUE           = ' '
    *     DEBUG_FLAG                    = ' '
    *     NO_LOGGING                    = ' '
    *     IDENT                         =
    *   IMPORTING
    *     EVENT_ID                      =
    *   TABLES
    *     EVENT_CONTAINER               =
       EXCEPTIONS
         objtype_not_found              = 1
         OTHERS                         = 2
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ELSE.
        WRITE: / 'EVENT TRIGGERED'.
      ENDIF.
      COMMIT WORK.
    Hope it helps you.
    Regards
    Indu.

  • Error while starting workflow from warning msg or error msg?

    Hello experts,
    I m tryin to start and workflow from error msg of ME21...whn we juss click enter without entering any value, it gives error as -" enter Purch org  ". whose msg class - ME and msg num - 083.
    thn from t-code SWUY,i creating and linked workflow for the msg.
    Now while testing,when m goin to t-code ME21, and goin to the long text of tht error msg.....the button to start workflow is not getttin enabled. tht is still disable.
    PLease tell r thr any other back ground settings to be done for this.
    Regards
    Nitin

    Hi,
    Your workflow landed up in Error and you want to Restart it right.
    Go to SWPR and check that workflow is there.
    If found, select it and Restart it.
    Regards,
    Surjith

  • Triggering Workflow from Custom Module pool

    Hi,
    I am trying to trigger my workflow from my custom module pool using the function module "SAP_WAPI_START_WORKFLOW". I am passing the following parameters for the above function module
    TASK, LANGUAGE, DO_COMMIT, USER and INPUT_CONTAINER
    but, it is returning the following message
    "You are not one of the possible agents of task 'WS90100020'"
    Please suggest a solution for this problem?
    Regards
    Sujith P. Soman

    Hi,
    A better way would be to trigger your WF using an event and calling SAP_WAPI_CREATE_EVENT. But if you want to start it directly then if you are calling this FM in dialog you need to be a possible agent. The easiest is if you jsut make it a general task so anyone can start it.
    In PFTC, open your WF goto Additional Data -> Agent assignment -> Maintain. Click on 'Attribnutes' and select 'General Task'.
    Also run SWU_OBUF afterwards to synch all buffers before testing your FM again.
    Cheers,
    Mike

  • Error searching for from role provider Microsoft.Office.Server.Security.LdapProviderException: Unexpected exception occurred, please contact administrator to resolve this issue.

    Hi,
    I am trying to configure FBA with ADLDS on SharePoint 2013 Enterprise.
    I have edited, web.config files for Central Admin, Security Token Application and Claim aware WebApplication.
    <PeoplePickerWildcards>
    <clear />
    <add key="XXPROVIDERMP" value="%" />
    <add key="XXPROVIDERRM" value="%" />
    <add key="AspNetSqlMembershipProvider" value="%" />
    </PeoplePickerWildcards>
    <membership defaultProvider="i">
    <providers>
    <add name="i" type="Microsoft.SharePoint.Administration.Claims.SPClaimsAuthMembershipProvider, Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
    <add name="XXPROVIDERMP" type="Microsoft.Office.Server.Security.LdapMembershipProvider, Microsoft.Office.Server, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C" server="CSERVER" port="389" useSSL="false" userDNAttribute="distinguishedName" userNameAttribute="userPrincipalName" userContainer="CN=Clients,CN=Extranet,DC=XXDCNAME,DC=dmz" userObjectClass="person" userFilter="(|(ObjectCategory=group)(ObjectClass=person))" scope="Subtree" otherRequiredUserAttributes="sn,givenname,cn" />
    </providers>
    </membership>
    <roleManager defaultProvider="c" enabled="true" cacheRolesInCookie="false">
    <providers>
    <add name="c" type="Microsoft.SharePoint.Administration.Claims.SPClaimsAuthRoleProvider, Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
    <add name="XXPROVIDERRM" type="Microsoft.Office.Server.Security.LdapRoleProvider, Microsoft.Office.Server, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C" server="CSERVER" port="389" useSSL="false" groupContainer="CN=Clients,CN=Extranet,DC=XXDCNAME,DC=dmz" groupNameAttribute="cn" groupMemberAttribute="member" userNameAttribute="userPrincipalName" dnAttribute="distinguishedName" groupFilter="(ObjectClass=group)" scope="Subtree" />
    </providers>
    </roleManager>
    When I am trying to find user in People Picker, getting error
    Error searching for "XXUSER"from role provider "XXPROVIDERNAME" Microsoft.Office.Server.Security.LdapProviderException: Unexpected exception occurred, please contact administrator to resolve this issue.
    Has someone else faced this issue?

    Figured it ! 
    Account which was accessing FBA didn't had permission on it.

  • Delete workflow from repository

    Hi, Actually i renamed some worflow and its child as well and want to move from dev repository to production repository.but if I move these it will create new copy of workflow with renamed name.So now I want to delete the old copy of work flow from the repository which is of no use. But as the old copy of workflow contains Some reusable cmd task. Which are being used in some other work flow.Let me know if I delete old copy of workflow from repository will I loss those reusable cmd task as well? Also let me know from where I should delete workflow in this case from repository manger or from workflow manager   Plz help in this.

    Hi All, I have a scenario to implement.Need urgent help. I have relational source which has below fields. ID,Account,AccountType,Balance1,1001,GL,46567.901,1002,SL,56889.971,1003,Equity,45543.9081,1004,GL,89.541,1005,SL,-56889.971,1006,Equity,-45543.9081,1007,SL,-42777.45  Here my first requiremnt is to check if the balance value for entire file is 0 and if balance amount for each AccoutType is 0 , if both condtionn satifies the flow will go , else load will fail. I tried in below approach. SQ >> Expression >> Aggregator  In aggregaor i have first calculated sum(balance) for entire file by group by on ID column in an aggregator , and keep actual data in expression transformation. Then i took an expression to connect actual data with the sum(balance) , since i need to perform further calculation.I tried connecting expression and aggregator , but it is not allowing me to connect the posrts. And if i am using a joiner , then wrong data is loading to target. It is joining each result of aggregator with actual ports in expression.   I am not sure how to handle this scenario, so that we can just calculate sum of entire file and sum on basis of account type , is both sum are 0 then load the target , else fail.

  • How to trigger a second workflow from a workflow?

    Hi All,
              I want your guidance in deciding the process flow of a workflow to be developed.
              We have a scenario in our project where we have to develop a workflow for vendor creation/change
              done through a portal.Now we have designed to do through this 2 workflows.
              First workflow is triggered when the create/change is done in the portal and the entry is made in a
              z table.This is the trigger point of first workflow.
              First workflow will identify all approvals and store them in another z table with all the approval levels  needed and the approval groups stored in the z table itself.
              Second flow will trigger on the entry made in this z table.It will read all approvals and send the mails to tha approvers in the respective aproval groups.
    Now can you please verify this.Is it possible to trigger a second workflow from a workflow?
    If yes then can you please explain the methodology to do the same?
    Also if any other approach can be taken,please suggest the same.
    Thanks a lot,
    Saket.

    First Develop a Z Business OBject (let ZVENDOR) to update the Z table when ever a Vendor is created or Changed.
    Now For the first workflow do like this
    From the WD application when the user clicks on the SAVE button then call the Function module SAP_WAPI_START_WORKFLOW .
    Develop a method in the ZVENDOR to update the Z table.Make the method as background.
    Use the method that you have created in the above point in the first workflow but prior to this make sure that you have passed all the required information to the workflow.
    Once the table is updated.
    For Second Workflow
    Create a Change document object for the Ztable.
    And trigger the workflow when ever any entry is made or changed in the z table

  • Is i possible to trigger a workflow from the creation of an event in iCal

    Is i possible to trigger a workflow from the creation of an event in iCal
    Or is is possible to create a workflow to ad events to an iCal calendar which then triggers the workflow or is combined with the ad events workflow.
    Graeme

    Hmm, nope. Not that I'm aware of. Very few apps allow you to hook scripts directly to user activity. Finder* is a notable exception. iCal's "publish" feature has the ability to auto-update after user activity, but you'll either need dot mac accounts or your own webdav server to get that working.
    I'd re-consider the idea of triggering a periodic workflow with iCal. That way if the computer is shut down or asleep, iCal will wait to run the workflow at its next opportunity. You could hide the unsightly repeating events in a second calendar so they're out of the way.
    The next best thing is to write a faceless AppleScript application with a long-duration idle handler. The user would simply add it to their login items in System Preferences. This would also resume its cycle after sleep or shutdown.
    Yet another option is to write an AppleScript that can register itself in the crontab. This has the advantage of running at a predictable time. If you're careful, you can even set the script to wake up or power on the computer as necessary.
    * Folder action scripts can be triggered when files are created, moved, or deleted, but not when they're merely updated. This probably rules out much of iCal's activities in ~/library/application support/ical/.

Maybe you are looking for

  • Apple Aluminium Wireless Keyboard - How to put back UP arrow key

    Apple Aluminium Wireless Keyboard - How to put back UP arrow key Does anyone know how to put back the UP ARROW key that has fallen off? The parts are in good condition. It must have caught something and it fell off. Thanks.

  • Multiple email addresses in Scan to Email

    Hi All, I would like to setup multiple email addresses on our scanner at work. I would like to press the scan to email button, and get the scaned page into multiple email accounts. Does anyone know if this is possible, and how to do it. I tryed many

  • Starting Over

    when i switched from a pc to mac i did not want to give up my photo organizational structure i had long established on my pc, it all worked very well. what i have been doing on my mac it downloading the photos using image capture and putting them in

  • Pictures on Ipod 80G Classic - not all showing

    I sync'd my ipod with my photos and only some are showing. I can see them in the split screen, but when drill in to see a picture or to have them randomly scroll I get a blank screen - Can anyone help?

  • Help With Dynamic PL/SQL LOV Syntax

    Hello I am trying to create a dynamic pl/sql lov in Oracle Apex 3.2 on 11g. I am having some issues with the syntax of the statements below and I'd appreciate any suggestions. DECLARE BEGIN IF :p3_current_a_workshop != 0 THEN RETURN 'select distinct