Workflow set up with event receiver

Hi Experts,
My scenario is like this -
I am doing a customer outbound interface. The business objects KNA1 & KNB1 are extended to create  events for creation & changing the customer master.
The change documents will be configured to trigger these events  whenever a customer is created or changed.
Now HOW DO I DO THIS - I need to develop a multi-task custom workflow template as an event receiver. The workflow will do the following :
a) Will check if the customer exits
b) Will collect all the information petaining to the interface
c) will call the RFC -enabled FM's to interface the data to a Middleware.
d) Will write to an error log if the interface failed
Please suggest me & your valuable solutions are rewarded with points.
thanks
Harikumar

Hi,
apart from posting this question in the business process management forum.
In swetypv the linkage between events and worfklows are maintained. For "exotic" requirements which will decide whether an event should have a workflow as a receiver you can add check function modules to such a linkage.
this will help you in deciding before the Wf is triggered if it makes sense.
for the rest of your requirements, hire a technical workflow developer, because additional tasks and methods will have to be created.
Kind regards, Rob Dielemans

Similar Messages

  • Problems with Event Receiver and SkyDrive Pro Document library

    I wrote an event Receiver that implements the ItemUpdated (but the Synchronous one) event. I basically modify docx files content. When the library has versioning enabled, I first move the SPFile to a hidden library that does not have versioning, I update
    it, and then I move back to the original library to avoid creating a new version for this file.
    This works fine in the standard case (e.g. standard Document Library), but for Document Libraries that belong to SkyDrive then when I upload files using the SkyDrive Pro utility (that is, the utility that synchronizes files from "C:\Users\Administrator\SkyDrive
    Pro\Shared with Everyone" to the server) there in an error reported by the Upload Center since it seems that as the file content is modified in the server and is different than the local copy then it does not like this situation. If you open the file
    using the Upload Center then word asks you to keep the version in the server, or the version that is local.
    Any way to bypass this?
    Thanks

    Hi,
    From the description, the issue seems to be that the event receiver fires in the SkyDrive library, but the SkyDrive folder where you met the error message isn't synchronized to the server.
    If so, this will be the default behavior, have you checked the workflow? You may consider copy the document to document library using workflow, update the document in the library using event receiver or workflow, then copy back to the SkyDrive
    library.
    If it isn't the issue, please feel free to let me know.
    Thanks,
    Qiao Wei
    TechNet Community Support

  • Adding and removing current user from one SharePoint group to another with event receiver

    hi friends
    i need to change current user from one SharePoint group to another with list item adding event receiver.
    please help me

    Hi Malli,
    Greetings. Its nt possible
    http://sharepoint.stackexchange.com/questions/42286/event-receivers-on-add-remove-users
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Workflow and processing with event messages

    Are there any examples available on using the event message datatype.
    We are using Interconnect and Workflow 2.6. Interconnect passes data to workflow in the form of the event message. Are there any examples/samples available on how to extract individual data elements from the message, and being able to re-set the values.

    You might want to have a look at the Event System Demonstration process. A description is here:
    http://otn.oracle.com/docs/products/ias/doc_library/90200doc_otn/integrate.902/a95265/demo39.htm
    You can also refer to the following white papers:
    Getting Started with the Oracle Workflow Business Event System and Advanced Queuing
    http://otn.oracle.com/products/integration/workflow/workflow_wp_bes.pdf
    Oracle Workflow Release 2.6.2 Business Event System and PL/SQL Development Guidelines
    http://otn.oracle.com/products/integration/workflow/wfbesdevgdln.pdf
    Regards,
    Clara
    Are there any examples available on using the event message datatype.
    We are using Interconnect and Workflow 2.6. Interconnect passes data to workflow in the form of the event message. Are there any examples/samples available on how to extract individual data elements from the message, and being able to re-set the values.

  • Can't start a 2013 Workflow in an Event Receiver

    I am trying to run a SP2013 workflow from an Event Receiver but I get the error "The request was aborted: The request was canceled. Client ActivityId: aec2fc1b-3f33-44d8-85ab-c6c976617b8c" at the point I actually attempt to start the Workflow.
    The scenario is  as follows. I have 2 lists: List A and List B. Users have permissions to create items in List A but not List B. When users create a new item in List A, a SP2013 workflow runs which then creates a new item in List B. List B should then
    run another SP2103 Workflow but because of how SP and workflows work, this second workflow on List B doesn't automatically run. Thus I have created an Item Added Event Receiver on List B that will run the required workflow automatically (at least it should
    if it worked!)
    I'm sure the problem must be something to do with permissions but nothing I try seems to solve it:
    I can't just use the account of the user triggering the event as this user will be the person adding items to List A and they don't have permissions to do anything in List B (thus they cannot see items in list B or start workflows)
    I can't run using RunWithElevatedPrivileges as a) I don't think this works well with Event Receivers and b) SP2103 workflows cannot be run using the admin account.
    I have tried impersonation with an account specifically set up for running workflows (named mydomain\wssworkflow). This account has full control of the entire site, lists etc. but it still gives the error mentioned above. My code is shown below - the error
    occurs on the line: 
    wfi.StartWorkflowOnListItem(sub, properties.ListItemId, payload);
    Any help in working out why this isn't working would be appreciated.
    Thank you,
    -Stephen
    public override void ItemAdded(SPItemEventProperties properties)
    base.ItemAdded(properties);
    var wsm = new Microsoft.SharePoint.WorkflowServices.WorkflowServicesManager(properties.Web);
    var wfss = wsm.GetWorkflowSubscriptionService();
    var subs = wfss.EnumerateSubscriptionsByList(properties.ListId);
    foreach (var sub in subs)
    if (sub.Name == "RequestAddedToListB")
    var userToken = properties.Web.EnsureUser(@"mydomain\wssworkflow").UserToken;
    using (SPSite site = new SPSite(properties.Site.ID, userToken))
    using (SPWeb web = site.OpenWeb())
    var payload = new Dictionary<string, object>();
    payload.Add("itemId", properties.ListItemId);
    payload.Add("WorkflowStart", "StartWorkflow");
    var wfi = wsm.GetWorkflowInstanceService();
    wfi.StartWorkflowOnListItem(sub, properties.ListItemId, payload);
    break;

    This is the alternate code I had using SPSecurity.RunWithElevatedPrivileges that didn't work. It gives the error 
    "Attempted to perform an unauthorized operation"
    on the line
    var subs = wfss.EnumerateSubscriptionsByList(properties.ListId);
    Thank you.
     public override void ItemAdded(SPItemEventProperties properties)
         base.ItemAdded(properties); SPSecurity.RunWithElevatedPrivileges(delegate
    var wsm = new Microsoft.SharePoint.WorkflowServices.WorkflowServicesManager(properties.Web);
    var wfss = wsm.GetWorkflowSubscriptionService();
    var subs = wfss.EnumerateSubscriptionsByList(properties.ListId);
    foreach (var sub in subs)
    if (sub.Name == "RequestAdded")
    using (SPSite site = new SPSite(properties.Site.ID))
    using (SPWeb web = site.OpenWeb())
    var payload = new Dictionary<string, object>();
    payload.Add("itemId", properties.ListItemId);
    payload.Add("WorkflowStart", "StartWorkflow");
    var wfi = wsm.GetWorkflowInstanceService();
    wfi.StartWorkflowOnListItem(sub, properties.ListItemId, payload);
    break;

  • KNA1.CREATED with Event based on Change Documents -- No Receiver

    Good morning experts,
    I set up a subtype of Object KNA1 ZKNA1 with 2 events CREATED and CHANGED, KNA1 is delegated to ZKNA1.
    Additionally, I set up two ansynchronous methods "CREATEASYNCHRON" and "CHANGEASYNCHRONE" in ZKNA1, both are a simple CALL TRANSACTION, these methods should be terminated by the two mentioned events.
    I added 2 entries in TA SWEC for triggering the both events when change documents are posted --> works fine, everytime I create or change a customer the systems creates the linked event, the event container is filled with the customer number.
    Afterwards, I set up 2 standard tasks for the two mentioned methods with terminating event CREATED and CHANGED,  the Instance Linkage was done in TA SWEINST and is active.
    My problem now is that the event is triggered correctly, but the tasks are not getting terminated, the event trace also tells me that that there would be no event receiver entered.
    Can you tell me what I did wrong? I made this for a lot of other workflows before and everything worked fine, so I don't understand what's the problem...
    Thanks for your support!

    Hi,
    I am not sure if this will work...
    Simulate 1 event using SWUO...
    Under Potential tasks to be terminated... find your task ... right click-> Event Linkage -> Select "Event Linkage activated" ...
    and try once more ....
    Regards
    Gautam

  • On a list item which runs first workflow or event receiver?

    I have a list where workflow and event receiver is attached
    event handler fires on item updated and added and workflow fires for updating the item or so.
    Kindly let me know how the priority goes to each technically
    how sharepoint handling this internally
     very much thanks in advance.
    sudhanshu sharma Do good and cast it into river :)

    After events (ItemAdded and ItemUpdated) are asynchronous by default and run after the item is added/updated and you can’t tell exactly when it’s done. It's possible the workflow will start before the after event is done.
    If you need the workflow to run after the event receiver you can try option 1 below or go with option 2.:
    Make the after events synchronous (SharePoint 2010 and up) (link)
    Set the workflow to be started manually and in the event receiver’s code start the workflow (link)

  • Want to fire event receiver before workflow is execute while adding File in Document Library.

    Hi,
    I have Event receiver and workflow attached to same Document
    Library.
    Is it possible to fire event receiver before Workflow is
    executed ?
    Regards,
    Milind

    Hi,
    According to your description, my understanding is that you want fire event receiver before workflow is excuted.
    If the workflow for a list is set to auto-start, it will always execute before event receiver by default.
    Here is a similar thread for your reference:
    http://sharepoint.stackexchange.com/questions/3147/execution-order-of-event-receivers-and-workflow-on-a-list
    As a workaround, you can set the workflow start by manually. Then , after executing the event receiver, you can start workflow using code at the end of event receiver.
    Here is a demo for your reference:
    http://zimmergren.net/technical/starting-a-sharepoint-workflow-from-code-event-receiver
    More information about start workflow using C#:
    http://jainnitin2411.wordpress.com/2012/07/06/programmaticallystartsharepointworkflow/
    Best regards,
    Zhengyu Guo
    Zhengyu Guo
    TechNet Community Support

  • Error in event receiver in workflow for PO release strategy

    Hi Expert,
    I am trying to trigger an email through workflow for PO release. I have setup following
    In SWETYPV,I have check marked on Type linkage active and Enable event queue. Status no error.
    In PFTC, under Triggering events, Object type BUS2012 is green light
    When i create the PO in my SAP inbox, i get notification, however, i getting this error u201CERROR IN EVENT RECEIVER".
    Also, how can i send the notification to the user's outlook inbox? Your help will be appreciated.

    laurarice wrote:
    Hi Expert,
    >
    > I am trying to trigger an email through workflow for PO release. I have setup following
    >
    > In SWETYPV,I have check marked on Type linkage active and Enable event queue. Status no error.
    > In PFTC, under Triggering events, Object type BUS2012 is green light
    > When i create the PO in my SAP inbox, i get notification, however, i getting this error u201CERROR IN EVENT RECEIVER".
    > Also, how can i send the notification to the user's outlook inbox? Your help will be appreciated.
    I suppose, you are using the workflow WS20000075. Add sending email as an additional task to the same workflow in SWDD.

  • If I set my phone to receive Imessages with my phone number ONLY, will that prevent someone else from having them sent to their device?

    If I set my phone to receive Imessages with my phone number ONLY, will that prevent someone else from having them sent to their device?

    If I'm correct, as long as someone is logged into your Apple ID, they can receive your messages. If you think someone else is using your Apple ID, change your password.

  • Workflow inbox level  given  message Error in event receiver .

    hi guys,
    workflow standard  purchase order copy to custom and create to purchase order event will be triggered successfully.but inbox level this errors has come but not display the purchaser order please help to me:
    Error in event receiver
    Error processing following event linkage:
    BUS2012 RELEASESTEPCREATED WS90000015
    Following error occurred:
    SWF_RUN 594
    Thanks&Regards,
    Bikshapathi.

    Hi BP,
    are you using any rule in your WF?
    check if binding is proper,
    check if you passing PO parameters properlty, as ReleaseCode would be a mandatory field in your WF/task container.
    Hope it helps.
    Aditya

  • Why is it when you set a calender event in outlook 2010 (in UK) with a reminder alarm for 30mins prior) and have the iphone set to keep the appointment time relative to the local country time that you travelled to, the alarm time is still at uk time ?????

    why is it when you set a calendar event in outlook 2010 (whilst i am in UK) with a reminder alarm for 30mins prior to the appointment time) and have the iPhone set to keep the appointment time relative to the new country time that i have travelled to (this works OK), the alarm time is still relative to the UK time and not in sync with the local country time like the main appointment is.
    Does anyone know the answer please.

    This has to do with the Time Zone Support selected in your phone. If you check in Settings>Mail, Contact, Calendars, there is a setting for Time Zone Support at the bottom of the page under Calendars. If that is turned to off, the calendar should support the local time. Because time is set to Automatic (since you say the time is correct on the iPhone), it is reflecting the local time. That information comes from the carrier, not the iPhone itself. You can check, however the iPhone says that if you turn off the Time Zone support, it should reflect in the local time. Do a test, if possible,  and see if that will do what you are asking.

  • Xquery Sender with External event receiver

    Hi,
    I am using a Xquery sender with external event receiver automation plugin.
    I want to use following functions in the same XQuery,
    1. automator:getOrderAsDOM($automator)
    2. automator:setSetJMSMessageText($automator, fn:false())
    But both these functions belong to different namespaces,
    declare namespace automator = "java:oracle.communications.ordermanagement.automation.plugin.*ScriptReceiverContextInvocation*";
    declare namespace automator = "java:oracle.communications.ordermanagement.automation.plugin.*ScriptSenderContextInvocation*";
    How can I declare these above namespaces in the same Xquery for using the above mentioned functions?
    Please help.

    To add to c.w.'s comments note that starting in 7.0.3 we have added support for additional automation context API functions that accept/return DOM natively. This saves the hassle of having to manually write the code to parse the serialized XML order into a DOM and also offers some additional efficiencies performance wise.
    This means with 7.0.3 you can access the order as follows:
    let $order := context:getOrderAsDom($context)
    There are similar API's to update the order (updateOrderAsDom) and to make an API call (processXMLRequestDom).
    Regards,
    Brian.

  • Fire event receiver after update list items with PowerShell

    Hi,
    I have a list with a event receiver attached to it. Also I have a PowerShell script which updates some elements. I noticed that the Event Receiver is not firing after the PowerShell script runs. Is there any way to make it happen?
    Thanks anyway!

    Hi,
    According to your description, my understanding is that the event receiver not fire after you update the item elements.
    I suggest you can create a simple event receiver and then test if the event receiver fire after PowerShell run.
    Here is my PowerShell script:
    $spWeb = Get-SPWeb -Identity http://sp2013sps/sites/test
    $spList = $spWeb.Lists["Documents"]
    $spItem = $spList.GetItemById(14)
    $spItem["Title"] = "Test111"
    $spItem.Update()
    Here is my event receiver code:
    public override void ItemUpdated(SPItemEventProperties properties)
    base.ItemUpdated(properties);
    Console.WriteLine("event receiver has been done");
    After the PowerShell run, it will come out the result:
    It means the event receiver has been fired.
    Here is a detailed article for your reference:
    http://blogs.technet.com/b/speschka/archive/2009/12/25/debugging-event-receivers-in-sharepoint-2010.aspx
    Thanks
    Best Regards
    Jerry Guo
    TechNet Community Support

  • HT5330 I already have iCloud set up with 10.7 but can't receive email

    I already have iCloud set up with 10.7 but can't receive email. Suggestions?

    hildigirl wrote:
    smtp.me.com:name and then  (Offline) after
    That is (or was) a Mobile Me server, now closed down. The correct servers are
    imap.mail.me.com and smtp.mail.me.com (outgoing), but this should have been set automatically, did you completely sign out of iCloud (System Preferences>iCloud and is Mail activated in Mail, Contacts and Calendars as well as iCloud?
    If you are still signed in at System Preferences>Mobile Me, sign out.

Maybe you are looking for

  • Is it possible to change the background of Web Dynpro Views in MDE apps ?

    Hi Team, Is it possible to change the Background color of Web Dynpro Views in Mobile Device applications ? I have been able to change the cellBackgroundDesign from Transparent o fill1 etc and this change is visible in the desktop application. But whe

  • Getting Internal Server Error while using SSPR in IDM 7.1

    Hi All, We have implemented SSPR functionality in our IDM 7.1 system and everything was working fine as expected. However since last few days we are getting below error, once users is trying to change his password using SSPR. He is entering his uniqu

  • '500 Connection timed out' Error in Sender SOAP Scenario

    Hi mates, I exposed o/b synch MI as a webservice. This webservice is received by a BPM and it triggers an IDOC generation program on R/3. BPM waits & collects the IDOCs and cosntructs the response from these IDOCs and returns it to the webservice cal

  • Decreasing Quality after Export to Encore

    Hello friends> Before I pose my question, I want to thank you all. The last 75 days have been an intense period of growth for me, going from ZERO filming and Adobe Premeire / Encore (CS5.5) experience, to where I am now. I'm probably still a beginner

  • DVD Player Quit

    I attempted to play the DVD "Star Wars Episode II", and DVD Player quit with a message "encountered a system error -47". According to Apple article 9805, this was a "File is busy" error. I ejected the DVD and it was able to play normally after reinse