Workflow not triggered when called within a Dynamic Trigger of HRMS

Hello,
Requeirment :Whenever any data is updated withing the People workbench of HRMS, a notification should be sent with the following message:
Employee Number <Empno> has modified emailid from <old> to <new>.
To achieve the same a dynamic trigger has been written on per_all_people_f table
invoking a procedure with the below script:
if(nvl(P_old_MS_Value,' ')<>nvl(P_New_MS_Value,' ')) then
     insert into log_self values(P_old_MS_Value,P_new_MS_Value,l_itemkey,p_employeename);
     wf_engine.CreateProcess ( itemtype => 'HRSSA',
itemkey => l_itemkey,
process => 'IRHR_SELFSERVICE_CHANGE_PRC');
insert into log_not values('After Create Process');
     wf_engine.SetItemAttrText ( itemtype => 'HRSSA',
     itemkey => l_itemkey,
     aname => 'CURRENT_PERSON_DISPLAY_NAME',
avalue => p_employeename);
insert into log_not values('After CURRENT_PERSON_DISPLAY_NAME');
wf_engine.SetItemAttrText ( itemtype => 'HRSSA',
     itemkey => l_itemkey,
     aname => 'IRHR_OLD_VALUE',
avalue => P_Old_MS_Value);
insert into log_not values('After IRHR_OLD_VALUE');
wf_engine.SetItemAttrText ( itemtype => 'HRSSA',
     itemkey => l_itemkey,
     aname => 'IRHR_NEW_VALUE',
avalue => P_New_MS_Value);
insert into log_not values('After IRHR_NEW_VALUE');
wf_engine.SetItemAttrText ( itemtype => 'HRSSA',
     itemkey => l_itemkey,
     aname => 'IRHR_ATTRIBUTE_THAT_CHANGED',
avalue => 'Marital Status');
insert into log_not values('After IRHR_ATTRIBUTE_THAT_CHANGED');
     wf_engine.SetItemAttrNumber ( itemtype => 'HRSSA',
     itemkey => l_itemkey,
     aname => 'FORWARD_TO_PERSON_ID',
     avalue => 572366);
     insert into log_not values('After FORWARD_TO_PERSON_ID');
     -- set the current forward to person username attribute
     wf_engine.SetItemAttrText ( itemtype => 'HRSSA',
     itemkey => l_itemkey,
     aname => 'FORWARD_TO_USERNAME',
     avalue => 'CHRISTOPHERHARRIS');
     insert into log_not values('After FORWARD_TO_USERNAME');
     -- set the current forward to display name attribute
     wf_engine.SetItemAttrText ( itemtype => 'HRSSA',
     itemkey => l_itemkey,
     aname => 'FORWARD_TO_DISPLAY_NAME',
avalue => 'Harris, Christopher');
insert into log_not values('After FORWARD_TO_DISPLAY_NAME');
     --insert into log_self values('Before Start Process'); 
--commit;                                  
     wf_engine.startprocess(itemtype=> 'HRSSA', itemkey => l_itemkey);
     insert into log_not values('After startprocess');
However we find the workflow process not getting triggered. The same however happens when the script is executed sepreately and a commit is given after the Start process. Is there a way i can invoke in dynamic trigger as the dynamic trigger prohibits use of Commit.?
Pls help ASAP.
Thanks & Regards,
Gayatri Jayaraman

Hi,
The Object key which you passing to trigger is not correct. Give the full key preceded with Zero.
Regards,
Surjith

Similar Messages

  • Workflow not triggered when i have changed the PO

    Hi,
    We have custom fields (Price) in PO Header as well as in item. when we update in header the price should get distributed to items.
    we have custom workflow evernt (changed) to update the items if user change in header. But the issue is if user changes the items and save the po, it is not updating immediatly. after we come back to Purcahse Order and save the purcahse order again then it updates the table.
    Is there any reason why the event is not triggered when the PO was changed initially.

    Hello,
    "We have custom fields (Price) in PO Header as well as in item. when we update in header the price should get distributed to items. "
    If you update a price in the header, how/why would that be distributed to the items? Is this a total price of the whole PO? Why not just have it in the header?
    "we have custom workflow evernt (changed) to update the items if user change in header."
    OK. Strange, but OK.
    "But the issue is if user changes the items and save the po, it is not updating immediatly"
    I thought it was supposed to happen when the users changed the header, not the items.
    If you really have a workflow to update the items when the header is changed, then maybe it's not succeeding if the PO items are locked, eg by having them on your screen. Did the worklow actually start? Any error messages?
    rgards
    Rick Bakker
    hanabi technology

  • Workflows not triggered when documents are created in Doc Set via Content Organizer

    The following is my scenario:
    A document set (containing several documents) is created in Library A on Site A
    Using Send To, the Document Set is sent to the Drop Off Library on Site B (a different Site Collection)
    A Content Organizer rule then moves the Document Set and its documents to destination Library B
    In Library B I have defined a workflow (using Visual Studio 2012) that is triggered when new item is create
    When the Document Set arrives in Library B from the Drop Off library (i.e. when the Content Organizer moves the Doc Set to Library B), the workflow is triggered (and executes) on the Document Set, but it is NOT triggered on the documents within the Document
    Set.   How can I get the workflow to trigger on the documents within the set when they are created via the Content Organizer rule?
    The interesting thing is that if I manually add another document to the Document Set in Library B, the workflow is triggered on that document.  It just does not trigger when the documents are created via the Content Organizer.

    Hi,
    In edit Content Organizer rule page, I see there is an option as Automatically create a folder for each unique value of a property:
    However, unlike the drop down used in the property based filters above, this drop down *only* contains properties that are required by your content type. 
    This is done to prevent adding folders that have no values for a property. 
    If you need to put similar documents to the same folder, you could consider making use of this feature.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Workflow not triggering when changing Item-level Permissions in Sharepoint 2013 list

    Scenario:
    We have a custom list in Sharepoint 2013 that we use for Case Management. We have a workflow that triggers on a created item generated from an email. The user then gets a reply with a link to his own case.
    I want the users only to be able to see their own cases and no one elses.  When I change this under
    Advanced Settings under List Settings and
    Item-level Permissions and set them to Read items that were created by the user
    and Create items and edit items that were created by the user
    the workflow doesn´t trigger.
    How can I resolve this? I've tried every possible out-of-the-box permissions but with no result. Help!
    Thanks in advance!
    // Browncreek

    When you're testing , remember you cant trigger declarative workflow from the System Account - you need a general user account for auto-trigger workflows.  Good luck!
    Chris McNulty MCSE/MCTS/MSA/MVTSP | blog http://www.chrismcnulty.net/blog | twitter @cmcnulty2000 Microsoft Community Contributor Award 2011
    Hi, I have the same problem. Except that I am not using an email to create a new item. The item is created by members of a SharePoint group that have Contribute access to the list. When use the same settings i.e.
    Read items that were created by the user and Create items and edit items that were created by the user,
    the workflow does not trigger. If I set it back to Real all items and Create
    and Edit all items, it triggers the workflow.
    Please help me resolve as I have rolled this out to pilot users and am having this trouble.
    Thanks,
    Vishal

  • BSEG.CREATED event not triggering when a document is posted in FB60

    Hi All,
    I have a requirement in which i need to post documents in FB60/FB65/FB01 tcode. But when i post the document in FB60 the event BSEG.CREATED is not triggering. I could not see any trace in SWEL. But when i park the document in FB60, FIPP.CREATED event is getting triggerd.
    Can anyone tell me why this BSEG.CREATED event is not triggering.
    Thanking you in advance,
    satheesh.

    Hi Viji,
    Thanks for your quick reply.
    We have maintained the required configurations in the system related to this. But still the event BSEG.CREATED is not triggering.
    for this the alternative solution is to implement the BTE '1030'. But our functional team is asking us to check whey standard business object BSEG.CREATED is not triggering when we post a document. So that particular reason we are not able to find out.
    Configuration maintained.
    1) Created a workflow variant and assigned it to particular company code(OBWA and OBWJ).
    2) Checked the 'Posting' release' and 'Release payments' checkboxes in the OBWA transaction.
    3) Event linkage for BSEG is active.(SWETYPV)
    Thanks,
    satheesh

  • How does a workflow get triggered when we create a Shopping cart

    Hi all,
    In SRm how does a workflow gets triggered when we create a Shopping cart...what i mean is that in r/3 we use changedocument object or function modules etc..likewise in srm how the wf gets triggere...can anyone help me.
    Thanks&Regards,
    Hari

    Hi martin,
    yes i accept that in SRM also workflows are all started by event...what i mean is in R/3 we go for Change document object(swec) or some other method for event creation...like that in SRM what is there?Just whenwe create a Shopping cart How the workflow is trigerred...suppose if it is trigerred using fm swe_event_create where they might have called the function module.
    Thanks&Regards,
    Hari

  • Phone will not ring when called

    Hello... I just purchased the iPhone from AT&t and the phone will not ring when called.  I have gone  to settings, sounds, ringtones and all looks good.  Phone sometimes shows a caller is calling but not always and it is not ringing.  Please help>>>

    If the issue is still occuring try a restore just in case.
    If that does not solve the issue..... Take it back to where you purchased it from
    AT&T's DOA (dead on arrival policy) is 30 days from the day of purchase.
    They should be able to replace the iPhone for you as long as you ask them to within 30 days of it being purchased.

  • Workflow getting triggered when added/replace in Mask

    Hi Experts,
    We are using MDM 7.1 SP09 and we are facing an issue of workflow getting triggered when records are added or replaced in Mask..
    ie whenever i am adding or replacing some records in mask workflow is triggered for most of the records ....IF i check the Workflow tab it will show all the steps maintained for that particular Workflow adn then gets deleted automatically...and strange thing is it is happening to a single user id/role and for other role this does not happen
    Can anyone please help me sorting out this issue..
    Regards
    Nitin

    Hi Ravi,
    Today again I checked the scenario once again in production with both user/role and found that workflow is triggered for both users...
    Also I tested in Test environment and issue is same..
    I checked the Perf Tracing and found the below. Please  let me know if these are triggered because of some Java...

  • ADF disclosure action listener not triggered when set disclosed directly

    ADF disclosure action listener not triggered when set disclosed directly in code.
    Is this expected behaviour?
    Thanks

    This should be the expected behaviour as there is no client side event fired.
    You would need to queue a Disclosure Event programmatically if you need to call the disclosureListener through code,

  • Adobe PDF files will not display when called via a link in page (FF 4.01)

    adobe PDF files will not display when called via a link in page.
    This happens when testing new web page from DWeaver CS5 - all other browser tests are OK (IE9, Safari5.05, Chrome etc.)

    [moved to the Adobe Reader (desktop) forum]

  • Workflow not triggered..in client server

    Hi Friends..
    i have developed one workflow for po release in local system it works fine..
    But i developed the same workflow in client system it was not triggered..
    i checked in swue the event was triggered perfectly..
    But the workflow not triggered.. if i click the workflow overview in me23n it shows
    "there are no workflows that are already worked with this object" so i dont know why this problem..' occur.. this problem arises at the time time of development in local system.. but now it was cleared..at that time release strategy not maintained.. but now release strategy also maintained.. but i dont know the exact reason and how can i solve this kind of issue...
    so anyone help me..urgent issue..
    Thanks in advance
    Gowrishankar

    What is the message that you are getting for the event? Is it "No receiver entered" or something else?
    Check for the event linkage between your event and workflow in SWE2. If it is not set select the checkbox "Linkage Activated" and acitivate the linkage and then try to trigger the event.
    If your event linkage gets deactivated everytime you  try to trigger the event, there could be some problem in binding from your event to workflow container. Check if all mandatory parameters in workflow receive data from event container.
    Thanks,
    Prasath N

  • Phone does not ring when called any suggestions

    Iphone4 does not ring when called. Any suggestions?

    Is the silent switch on?
    Does the ringer not sound or does the call not come through at all?
    Can you make outgoing calls?

  • ChaRM: Mail not triggered when current user = mail receiver?

    Dearl all:
         Ive noticed that mails are not triggered when the user who is processing a document is the same who will receive it. Is there any way to deactivate this functionality?
    Thank you very much,
    Federico.

    Hi Miguel, how are you?
          I think it is a nice feature not sending a mail when the user who is changing the status in the one who would receive the mail in that next status. But Im in the testing pahse of implementing SOLMAN and I would like to know if this is a real feature or a flaw, and besides I would like to turn off this possible feature, just for the testing phase. This is not a big deal anyway.
        By the way, I also notice that if there is a partner assigned multiple times to a document, it doesnt trigger the mails as expected.
    Best regards,
    Federico.

  • 1.call information such as call waiting,call forwarding, call holding is not working when caller the call me or im wait for my call i cant see any title by iphon , and also holding is the same.2. there is not any option for call baring.

    Hi. please solve my problem.
    .call information such as call waiting,call forwarding, call holding is not working when caller the call me or im wait for my call i cant see any title by iphon , and also holding is the same.2. there is not any option for call baring.3.playback music is not hearing by second partner during the call.4.i cant select ringing ton from saving tons.
    thank you in advance.

    Hi Ersin,
    Exception 1 would seem to be FORMATTING_ERROR, which suggests something in the design of the Smartform.  However, that doesn't fit with the form being generated from a report, but only erroring when called from a function module.  I can think of no reason why the different calling method would be a factor.
    When FORMATTING_ERROR is raise it should also set a message ID and number, are you able to determine what they are?
    Regards,
    Nick

  • Have an iPhone 5. Phone does not ring when calls come in and texts sent from non-iPhones are delayed by 4-5 hours before receiving.

    Have an iPhone 5. Phone does not ring when calls come in and texts sent from non-iPhones are delayed by 4-5 hours before receiving.

    This morning I woke up thinking that I should turn off my iPhone and then call it from a land line.  If the problem is the network then there would be a delay before I heard ringing.
    I turned my iPhone off and called it.  Right away I heard my message.
    I turned my iPhone back on and called it.  It rang right away!
    So, did Virgin Mobile fix the problem or did turning my iPhone off fix the problem?
    I don't know, but I'll take either.  I do know that Virgin Mobile said it would be four days to check the problem.  Did the problem get fixed yesterday when the four business days were up.  I do know that I've had my iPhone on for a long, long time.  Did upgrading to 6.1.1 or 6.1.2 cause the problem and turning my iPhone off reset my iPhone?
    If you have delayed ringing problem and turning your iPhone off and on again resolved it, please post a note here.
    P.S. I did call Virgin Mobile and its records show the investigation is still open.  I hope my points get passed on to the investigators.
    P.P.S. Reading my notes, I had turned my iPhone off and on last week.  Maybe it's all the phase of the moon.

Maybe you are looking for

  • File adapter, no item in Adapter Engine list

    I'm trying add communication channel (File/FTP Receiver) There is no item In Adapter Engine list . This fieldis mandatory. What must I do to see "Integration Server" in this list? Thanks.

  • IWeb '08 + 2.0.2 updated won't finish publish

    I, like many iweb users, have had no luck getting the latest iWeb to publish anything for the last 7 days. We have all tried everything and it seems that the only thing that isn't working is some sort of publishing permission or server error. APPLE;

  • Iphone 5 refurbished, will I be forced to update IOS?

    My iPhone 5 has IOS 6.1.2 installed on it and the power button has stopped working. It is being replaced under warranty. When I set the replacement phone up from the restore from my original phone will I be able to install the same IOS (6.1.2) or wil

  • How to Aviod Further Processing  ?

    Hi, I have to write a logic in the USer exit there are some conditions to be satified for creting the Sales Order, if they do not satisfy I will have to aviod the Further processing of the order, the order should not be created it should be terminate

  • How to save PDF form without empty fields ?

    Hello, I try to find how to save PDF forms after a school registration but without empty fields because i have lots of relation in my Form but i haven't. Is it possible and how ? Thanks