How to Trigger / execute a rule directly from an XML form?

I am in the process of customizing User Forms, and I would like to implement a trigger (if that's the right name for it) in the XML script, which will execute a Rule (or some code) that will result in an email being sent.
For example, the following simple script (selection from a dropdown menu) :
*<Field name='orderlunch'>*
*<Display class='Select' action='true'>*
*<Property name='title' value='Order Lunch'/>*
*<Property name='allowedValues'>*
*<List>*
*<String>- Please Select -</String>*
*<String>Yes</String>*
*<String>No</String>*
*</List>*
*</Property>*
*</Display>*
*</Field>*
A small XML code, to indicate an order for lunch.
naturally, if the user selects "No", then nothing happens.
But, if he selects "Yes", then I would like to automatically send an Email Notification to the appropriate person, notifying him that lunch has been ordered. (of course, I would need to indicate such things as WHO ordered the lunch, WHEN, etc, etc. But, I will get into that later)
Does anyone know how this can be done?
(a) Could I insert the trigger/condition/whatever right into the main XML script itself?
Or
(b) should I write a code which will call on/invoke a separate Rule, which will subsequently send the email?
If (b) is the right answer, then how would I go about creating such a Rule, and linking it to the main XML script?

In your Wf or subprocess call the activity notify .testemaillist contains the list of users for whom the mail need to be sent .
<Activity id='1' name='Notify'>
<Action id='0' process='Notify'>
<Iterate for='email' in='testEmaillist'/>
<Argument name='template' value='emailtemplatename'/>
<Argument name='to' value='$(email)'/>
</Action>
</Activity>
I hope this may help you

Similar Messages

  • How do I move a file directly from the desktop to a folder in OX 10?

    I am new to Mac and the Mountain Lion software.  Having worked exclusively with PC operating systems, I am familiar with how to work with files in Windows, but am having trouble doing similar actions in OX 10.  How do I move a file directly from the desktop to a folder in OX?  Although this answer is likely in a video tutorioal (somewhere), I do not have the time to sit an arbitrarily watch generic OS videos that give a broad brush overview, without answering specific queries.  Any help out there?

    You might fun http://www.apple.com/support/macbasics/ to be of help to get used to doing things the Mac way.
    Allan

  • How do I import an image directly from the internet without printing and scanning it in first?

    How do I import an image directly from the internet without printing and scanning it in first?

    You can also Ctrl click on the image, save the image to your desktop and open it in Photoshop.
    1.
    2.
    3. Open in Photoshop by double-clicking on the saved image on your Desktop or Cmd o in Photoshop.
    I don't see any point to copying and pasting from a browser into a new file in Photoshop.
    If you want to put an image onto an already open image in Photoshop, use the File > Place... command and select your saved image.
    Gene

  • How to print customer Sales Invoice directly from FI module?

    Hi,
    How to print customer Sales Invoice directly from FI module without using SD's t-code VF02 and VF03?

    hi,
    only way in FI is Correspondence functionality usage. Please config it and use F.61 or F.64 to print it.
    regds,
    raman

  • How to install icloud if not directly from their iPhone

    how to install icloud if not directly from their iPhone

    iCloud Set Up
    Apple - iCloud - Learn how to set up iCloud on all your devices.
    To enable iCloud on your Windows PC, first set up iCloud on your other devices, then install the iCloud Control Panel for Windows...
    From Here...
    http://www.apple.com/icloud/setup/pc.html
    iCloud FAQs
    Creating an iCloud account: Frequently Asked Questions
    Supported System Requirements

  • How to run a CMD command directly from run ?

    How to run a CMD command directly from run ?
    Like "cmd md D:\abcd". I did this before. But now I totally forgot how to do that ?
    Please help..........

    Hi,
    To add, here is the command CMD reference:
    Cmd
    Best regards
    Michael Shao
    TechNet Community Support

  • How can I export 1920x1080 Mp4 directly from FCP

    How can I export 1920x1080 Mp4 directly from FCP

    Thanks Russ.
    I wasn't thinking about the Apple Devices so much as the Master File set to Audio & Video which produces a .mov file.
    I have normally used the Master File to export my videos but will experiment in future with "Computer".
    I've taken a closer look with VideoSpec and notice that the data rate of the .mov file is about 70% of the .mp4 and the file size is correspondingly smaller.
    The export/render time of the .mov is also somewhat quicker.

  • Reading rule sets from an XML file

    Hi all,
    How can I read rule sets from an XML file? I have been given some rules in XML
    format and using those I have to query some content. I am using WLP4.0
    Also how can I code rules in java?
    Thanks in advance.

    You can have the following classes:
    Players class deriving from Vector (or containing a vector), and then
    Player class with attribute 'name'.
    class Players
               Vector myVector = new Vector();
                void addPlayer(Player p)
                      myVector.add(p);
                Player getPlayer(int index)
                      myVector.get(index);
    class Player
             private String myName = null;
             Player(String name)
                    this.myName = name;
             String getName()
                    return myName;
    }Then while handling the SAX events you can do the following:
    class MySAXHandler implements ContentHandler (or whatever the itnerface is)
                 public void startElement(String name,....)
                          Players p = null;
                          if(name.equals("Players"))
                                 p = new Players();
                         else if (name.equals("Name"))
                                p.add(new Player(value));
    }HTH,
    Kalyan.

  • How can i pass the value one from to another form?

    hi all
    how can i pass the value one from to another form  with out use it when ever i want to needed this value that ican useit?
    like i have two fields U_test1 and U_test2  table name @AUSR
    that i have  four form  A! , A2,A3,A4    please tell me in details....?

    Hi,
    U can assign the values to some variables and access then in ur required forms.
    Vasu Natari.

  • How to trigger a process task on IT Resource process form

    Hi,
    I want to know how to trigger a process task on IT resource process form using OIM API.For Example:- If a task ilike an e-mail is to be sent on the departure date of a user.So,how can it be done using API?
    Thanks.

    This would typically be done through a scheduled task. Write your code to query for the departure date. If someone meets your criteria for an action to occur, you can either use the addProcessTaskInstance which has an adapter attached to it to send the email, or in your code, send the email.
    The details that need to be considered though is where the departure date is stored. Is it on a process form, or is it on the user's OIM profile. Do you want to disable the user or revoke the object instance at this departure date? You could use the notification tab of these existing tasks if so.
    -Kevin

  • Regarding rendering data from seperate XML form in Adobe Flex

    Hi All,
    I am practicing Flex, in this practice I had used SWF file generated for perticular flex project in NWCE but one problem is occur i.e. one of the flex project(day3 exercise 10 ) is implementing  drag and drop between the components is there in flex ,I had practiced in flex builder working fine then swf file generated for this and try to use it in my NWCE environment but problem is room rendering( rooms data extracts from separate XML form is placed at assests in workset ) not working plus no items displayed on that component only ,items of remaining components displayed properly.This Rooms.xml form where to place for display rooms data properly.
    How can I solve this problem.
    Thanks,
    surya.

    Thank u,
    You mean we are unable to access data from local files at run time in flex applications,is right? but suppose at the time of integration of flex application with webdynpro are any other how to pass the required information,for example i am extracting rooms data from xml this xml and pass to list in MXMl component.This XML file is placed source folder of flex project at the time of run this application in Flex builder but i want to use this flex application SWF File in Webdynpro for java(means integration flex and wendynpro).how can i pass this rooms data to list .
    Is there any alternative for this please provide me answer asap.
    Best Regards,
    surya.

  • How can I execute a batch file from my java program

    Hi,
    Can someone help me or direct me to a link,
    How can I execute a DOS batch file from my java program?
    Thanks

    You will need to grab a handle to the process's
    outputstream so u can see its output.The OP didn't mention any output from any batch file;
    nor any input for that
    matter,so lets not complicate matters here for now
    ok?Actually I think this is essential to see whether it works or not. It's either that or do some manual check to see whether it ran, which is not exactly elegant, and in some cases this may not be easier than simply writing the output stream code, or in fact it may be impossible to check manually.
    I'm sure it wasn't intentional that your post appeared to be bristling with attitude.

  • How can I save an image directly from my pc browser to view later on my Ipad?

    Hey all,
    When I attempt to download an image from Firefox on my PC directly into an iCloud Photos shared album, I get the error message: "You can't save here. Please choose another location."  If I navigate to the directory where my iCloud photos are stored within Windows 7, I am able to save the file, but it isn't shared.  What is the proper way to save images from my PC browser to be viewed later on my iPad?  Using Dropbox, this is simple. iCloud, not so much.
    Thanks!
    - CB

    The time should already be shown on the status bar, but you can't add the day and/or date to it - if you would like to have them then you coul leave feedback for Apple : http://www.apple.com/feedback/ipad.html
    If you want to copy an attachment from an email then you can't do that directly from the Mail app. If the email is still on your provider's server then you should be able to read the email on your provider's site via a browser on your computer and save it from there directly on your computer. Otherwise you will need to copy the file from the Mail app to another app on your iPad via the 'open in' function. Do you have an app on your iPad that supports the type of file that you want to copy ? How you then copy the file to your computer will depend upon what the app that you copy it to supports - different apps have different ways of copying their content to/from a computer e.g. via the file sharing section at the bottom of the device's apps tab when connected to iTunes, via your wifi network, dropbox etc

  • How can i control the DAQ directly from VB

    Actually, it is my first trial to use Visual Basic to get signal from DAQ.
    And i don't how to interface them. I have read an article to use DataSocket.
    However, it demostrated the OPC demo in OPC sever only, and so i didn't know
    how to get the signal directly from DAQ card to monitor the real-time
    signal.
    Also, i have tried to build a .dll from my VI file which is used to monitor
    the DAQ signal. However, the .dll file didn't have any return value or
    argument, did it mean i can use this method?
    And how can i interface the DAQ using VB?and my ADC model is AT-MIO-16E-2!
    Thank you very much

    Hi Sen,
    Are you using Measurement Studio ? If so then you can use the DAQ activeX controls.
    If not and you are using VB directly, then NI-Daq installs with examples for visual basic ( if you chose the option while installing- if not do a custom install and choose VB support). If so then you should find them under Program Files ->National Isntruments->NI-DAQ->Examples->VisualBasic. These may help you.
    Essentially NI-DAQ ships with a .bas file that contains the "declares" for the NI-DAQ dll functions. These files should be in
    Program Files ->National Isntruments->NI-DAQ->Includes (look for the .bas files) You can add these to your project to get access to the DAQ functions..
    On the second question, do you mean you are using labVIEW to create your dll ? If this
    is the case, then when you create your dll (in labVIEW's applciation builder) you have to set the parameters for the function (VI) and also the VI's return values. This will ensure that you can make use of your VI ..If you don't set a return value you really can't use it...Once you set the return value ,and create a dll, then you can use it like any other dll in Visual basic.
    Hope this helps...
    This link may help you
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/5052ad60f1accc3d862568a100717fd1?OpenDocument
    Nandan Dharwadker
    Staff Software Engineer
    Measurement Studio Hardware Team

  • Executing Business Rule / Calculation from Excel - Essbase

    Hi All,
    Currently I am trying to run the calculations / Business rules from essbase after locking and sending data. I am using the below code to run the business rule / calculation from essbase.
    Sub RunBusinessRule()
    On Error Resume Next
    X = EssVCalculate(Empty, "AggFlash", False)
    MsgBox "Business Rule executed successfully"
    End Sub
    The issue is that my code gives me a message that the business rule is executed successfully but the rule keeping running in the background for some time. Actually i need a code which will check the status of the process of calculation and when it actually gets completed I should get a message that it's been done. Please expedite.

    Hi,
    I take it you mean calc script and not business rule as really they are separate.
    The reason you get a message straight away is because you have the synchronous parameter set to false, if you set it to true it should not return until it is comple
    e.g.
    X = EssVCalculate(Empty, "AggFlash", True)
    Cheers
    John
    http://john-goodwin.blogspot.com/

Maybe you are looking for

  • Wingdings not exported correctly in PDF by Crystal Reports XI JRC in Linux

    I have a report that contains checkmark and scissor character from Wingdings/Wingdings 2. The PDF file is generated via a program using Crystal Reports' Java Reporting Component. When I am testing it in my machine (Windows), the checkmark and scissor

  • Skype wont update or Uninstall

    Im using windows 8.1 and when ever i try to update or uninstall skype i get error: Could not open key: HKEY_LOCAL_MACHINE32/Software/Microsoft/Internet Explorer/Main/FeatureControl/FEATURE_MAXCONNECTIONSPSERVER. Verify that u have sufficient access t

  • Is it free for facetime use @ Macbook

    is it free for facetime use @ Macbook Albert

  • Actions Wizard Panel missing actions

    How do I get the Action Wizard Panel to show recently created actions? Mine only shows the 6 default actions that come with acrobat. The actions I created are listed at the very top  in the "manage actions" dropdown, but they do not display, and ther

  • [Solved]Pacman can't find steam(and yes I read the other topics)

    To make it short, pacman really can't find steam. Options I tried: pacman -S steam pacman -Sy steam pacman -Syyu steam pacman -Ss steam And still got nothing. Here's my last attempt at it: $ sudo pacman -Syyu steam :: Synchronizing package databases.