Help with getting a node xpath from within the rules engine

I'm new here and to BizTalk.  In the rule composer I've setup my vocabularies and have started implementing rules. 
When a rule is evaluated to false I have a custom function called AddValidationError which is attached to the Action section.  This method accepts three parameters, a TTypedXmlDocument containing
the validation errors node, an xpath to the node that was validated and an error code.  AddValidationErrors will append a new ValidationError node to the validation errors node containing the error code, error message, severity, and the xpath of the node
that was validated.
The issue is that I can't figure out how to get the xpath to the node being validated so that I can pass it to the AddValidationError function.  I have tried defining the xpath parameter as
a TTypedXmlDocument which allows me to pass nodes of type TTypedXmlDocument, from there i can working the xpath but this doesn't allow me to pass nodes of other types, such as String, Int, DateTime, etc.
Basically I want to be able to add the xpath to the node being validated into the validation errors.  I noticed that the Predicate function Exists cal accepts any node from which it resolves
the xpath however I can't figure out how it does this.
Anyway I was hoping that someone could point me in the right direction.  How can I pass a node of any type to a function, or get the xpath to node being validated which I can then simply pass
as a string.
Note that I am aware that I can simply type the xpath or copy it from the node properties window but the rule will be managed by people who are not developers, e.g. BA's or system administrators.
 I don't really want to expect them to write an xpath query or piece one together from the node properties.  I also thought that I could add two definition's for each node, one of the value type (String, decimal, DateTime) and another of type TTypedXmlDocument
and pass the TTypedXmlDocument one to the AddValidationError method, which works but its not really ideal. 

Can you post the exact issue and what you really need ?
Do you want to create a Vocabulary or Rule with the predicate functions?
Regards, Aboorva Raja R Please remember to mark the replies as answers if they help and unmark them if they provide no help.

Similar Messages

  • Need help with getting images to look smooth (without the bitmap squares) around the edges. When I transfer the image from pictures, it sets itself into the InDesign layout, but with square edges. I need to find out how to get it to look smooth?

    Need to find out how to get my images transferred into an InDesign layout without the rough edges, as with a bit map image, but to appear with smooth edges in the layout. I can notice it more when I enlarge the file (pic). How can I get it to appear smooth in the finished layout. Another thing too that I noticed; it seems to have effected the other photos in the layout. They seem to be
    pixelated too after I import the illustration (hand drawn artwork...)? Any assistance with this issue will be greatly appreciated. Thanks in advance.

    No Clipboard, no copy & paste, as you would not get the full information of the image.
    When you paste you can't get the image info from the Links panel, but you can get resolution and color info either via the Preflight panel or by exporting to PDF and checking the image in Acrobat.
    Here I've pasted a 300ppi image, scaled it, and made a Preflight rule that catches any image under 1200ppi. The panel gives me the effective resolution of the pasted image as 556ppi. There are other workflow reasons not to paste—you loose the ability to easily edit the original and large file sizes—but pasting wouldn't cause a loss in effective resolution or change in color mode.

  • Help with getting high quality DVDs from AVCHD footage

    Hello,
    I know enough about video editing with PE7 to be dangerous, and was hoping someone could help me out.
    My question is regarding getting the highest quality standard DVD from AVCHD footage. I have a Sony HDR-SR12 camcorder recording in AVCHD. I am editing footage natively in AVCHD with PE7 on a quad core system. No problem with that. However, when I export to standard DVD the quality of the video goes down drastically. (Yes, I know burning to Blu-ray would give me higher quality, but I am giving this DVD to a friend who doesn't have Blu-ray).
    So far I have tried starting my project in both HD 1080i 30 5.1 channel:
    General
    Editing mode: HDV 1080i
    Timebase: 29.97 fps
    Video Settings
    Frame size: 1440h 1080v (1.333)
    Frame rate: 29.97 frames/second
    Pixel Aspect Ratio: HD Anamorphic 1080 (1.333)
    and Full HD 1080i 30 5.1 channel:
    General
    Editing mode: HD 1080i
    Timebase: 29.97 fps
    Video Settings
    Frame size: 1920h 1080v (1.000)
    Frame rate: 29.97 frames/second
    Pixel Aspect Ratio: Square Pixels (1.0)
    But I see no discernable difference in the quality of my output onto DVD.
    This is where my knowledge is lacking...how can I get the best quality output from my AVCHD onto a standard DVD? Is there some format I can convert to first, and then burn to DVD? Also, I am willing to break the footage into a couple of DVDs to improve the quality, but I don't know how or what to do for that.
    My footage looks REALLY great when viewing from the HDR-SR12 direct to HD TV with HDMI cable, but not very good on the DVD. My footage is of a ballet recital, and I lose definition in the faces, costumes, etc on the DVD output.
    Any help is appreciated! Thanks!
    Gina

    Hey Gina,
    This may be a year late, but as I have been pulling my hair out trying to solve this problem for the last 48 hours I finally did find somewhat of a work around, but it requires Adobe PP CS4.2.
    There is a plug-in here:
    http://www.mainconcept.com/site/prosumer-products-4/mpeg-pro-hd-7850/features-7861.html
    Which will actually output your edit as an AVCHD file. You can then burn this straight to an AVCHD using Nero 9 and keep the highquality level of your clips and not need Blu-Ray. The DVD player will need to be AVCHD capable, but I just bought one of those for $40 as compared to the $200+ of most Blu-Ray players.
    Hope that helps.
    Regards,
    DSW

  • RoboHelp 11 - When previewing topics from within the project, a script error displays: 'HHComponent Activator' is undefined. How do you get rid of this script error?

    RoboHelp 11
    When previewing topics from within the project, a script error diplays: 'HHComponent Activator' is undefined.
    How do you get rid of this script error?

    Hi there
    Have you tried clicking Help > Updates and applying the service release?
    If not, I'd start with that.
    Cheers... Rick

  • How can we get a url for a "Meet Now" conference call from within the Windows Store App?

    Hi,
    Is it possible to get the url for the current meeting / new "Meet Now" call from within the Windows Store app?
    You have the option of inviting your current Lync contacts, but I don't see a way of giving a URL to clients that would launch Lync on their device, or take them to the web app.
    I can see how to get the link using the Outlook plugin, for pre-scheduled meetings. Is this link always the same and the one that should be used for an impromptu "Meet Now" meeting? It would still be good to know how to get this URL from within
    the store app so I can tell clients where to get it.
    Some people may be on Windows RT devices and not have access to the plugin in Outlook, and want to start a meeting at short notice and then invite others via email or pasting a link to them elsewhere.
    Any help appreciated.
    If I have answered your question, please mark it as the correct answer. If I have provided helpful information, please mark it as so.

    Hi,
    Agree with Holger, I check on my Lync Windows Store app and can't find the meeting URL as well.
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • Swing Gurus Help! Problem updating a JProgressBar from within a listener.

    Hello all,
    I have a static JProgressBar attached to the Main JFrame of my application. One of the screens of my app has a JTable on it. I have a ListSelectionListener attached to the table. When an item is selected on the JTable, I pull some information out of it (Using the ListSelectionModel) and kick off a pretty lengthy process. This of course all happens inside the ListSelectionListener. My problem is that when I call into my JFrame (MainFrame.java) to update the ProgressBar, nothing happens.
    The first line of my valueChanged(ListSelecteEvent e) method is
    if (e.getValueIsAdjusting()) return; The next line is call to the progress bar:
    MainFrame.setExecutionProgress(10, "Opening...");When the code is like this, the progress bar isn't updated until after the method valueChanged() method returns. However, if I put the call to setExecutionProgress() before the if (e.getValueIsAdjusting()) check, the progress bar actually changes.
    The second scenario I mentioned above doesn't really help me because subsequent calls to MainFrame.setExecutionProgress() don't work from within the body of the valueChanged() method until it has returned.
    Is this a threading issue? I've tried wrapping calls with SwingUtilitilies.invokeLater(), but I can't get anythin to work. Any ideas?
    Thanks much in advance.
    -Toby

    Where do you kick off this 'lengthy process'? The process is kicked off within the listener. What makes it long is that some of the objects created in this process have to reach out to a web-service for initialization.
    Also, how do you know how far the lengthy process is?Well I create a few projects and just bump the progress meter by 10 or so with each object. I'm not really worried about the accuracy of the progress meter (a la Microsoft =), because I just want to give the user some visual indication something is happening behind the scenes (besides the hour-glass).
    I think I understand how you'd kick this process off in a thread, but how would you create another thread that's capable of monitoring the first? I mean how do you accomplish the inter-thread communication?
    ddinks much for the help!
    -Toby

  • I need help with controlling two .swf's from third.

    Hi, thanks for reading!
    I need help with controlling two .swf's from third.
    I have a problem where I need to use a corporate designed
    .swf in a digital signage solution, but have been told by the legal
    department that it can not be modified in any way, I also can't
    have the source file yada yada. I pulled the .swfs from their
    website and I decompiled them to see what I was up against.
    The main swf that I need to control is HCIC.swf and the
    problem is it starts w/ a preloader, which after loading stops on a
    frame that requires user input (button press) on a play button,
    before the movie will proceed and play through.
    What I have done so far is to create a container swf,
    HCIC_container.swf that will act as Target for the HCIC.swf, and
    allow me to send actionscript to the file I'm not allowed to
    modify.
    I managed to get that done with the help of someone on
    another forum. It was my hope that the following script would just
    start HCIC.swf at a frame past the preloader and play button, and
    just play through.
    var container:MovieClip = createEmptyMovieClip("container",
    getNextHighestDepth());
    var mcLoader:MovieClipLoader = new MovieClipLoader();
    mcLoader.addListener(this);
    mcLoader.loadClip("MCIC.swf", container);
    function onLoadInit(mc:MovieClip) {
    mc.gotoAndPlay(14);
    But unfortunately it didn't solve my problem. Because there
    is a media-controller.swf, that is being loaded by HCIC.swf that
    has the controls including the play button to start HCIC.swf.
    Here's a link to a .zip file with all 3 .swf files, and all 3
    .fla files.
    http://www.axiscc.com/temp/HCIC.zip
    What I need to do is automatically start the HCIC.swf file
    bypassing the pre-loader and play button without editing it or the
    media-controller.swf in anyway. So all the scripting needs to be
    done in HCIC_container.swf.
    I know this is confusing, and its difficult to explain, but
    if you look at the files it should make sense.
    ActionScripting is far from my strong point, so I'm
    definitely over my head here.
    Thanks for your help.

    Got my solution on another forum.
    http://www.actionscript.org/forums/showthread.php3?t=146827

  • I have CS 6 installed on a Win 7 OS machine. I can not connect to the internet to get updates from within the program. How do I fix this?

    I have CS 6 installed on a Win 7 OS machine. I can not connect to the internet to get updates from within the program. How do I fix this?

    IP routing doesn't work the way many folks might initially think it does; functional IP routing requires manual configuration and the establishment of static routes and default routes specific to the local network configurations, and it's very easy to get it wrong, or to get the default route swapped. Multiple NIC boxes don't magically work, either. (Been there, done that, wondered what happened to my network when the paths got reordered or my route settings were messed up, etc.)
    Routing configuration errors can be quite subtle, too. (Again, voice of experience. Ever had a thousand-seat office LAN accidentally routing through your desktop? As the, um, unnamed guilty party discovered, getting into that configuration was subtle. Seeing the performance crater on the fellow's box and on the LAN was obvious.)
    Knowing how IP routing works is a prerequisite to getting this configuration to work; there's manual configuration required. Clearly something has gone weird here.
    What to do? Read up on IP routing. I'll again suggest the threads and the manual mentioned earlier.
    And in general, I prefer to avoid using my comparatively expensive Mac boxes as sub-optimal IP routers or as firewall boxes. General-purpose operating systems and generic x86 boxes are going to be inherently poor IP routers. Dedicated routers (or embedded or surplus x86 boxes with routing software loaded) offload the Mac boxes here, and are also typically easier to configure manage. And "real" IP routers can have hardware specific to efficiently routing packets. Use of an outboard firewall or firewall-router box also greatly simplifies gateway routing, too; it's a configuration that many folks and many businesses tend to use.

  • Help with writing and retrieving data from a table field with type "LCHR"

    Hi Experts,
    I need help with writing and reading data from a database table field which has a type of "LCHR". I have given an example of the original code but don't know what to change it to in order to fix it and still read in the original data that's stored in the LCHR field.
    Basically we have two Function modules, one that saves list data to a database table and one that reads in this data. Both Function modules have an identicle table which has an array of fields from type INT4, CHAR, and type P. The INT4 field is the first one.
    Incidentally this worked in the 4.7 non-unicode system but is now dumping in the new ECC6 Unicode system.
    Thanks in advance,
    C
    SAVING THE LIST DATA TO DB
    DATA: L_WA(800).
    LOOP AT T_TAB into L_WA.
    ZDBTAB-DATALEN = STRLEN( L_WA ).
    MOVE: L_WA to ZDBTAB-RAWDATA.
    ZDBTAB-LINENUM = SY-TABIX.
    INSERT ZDBTAB.
    READING THE DATA FROM DB
    DATA: BEGIN OF T_DATA,
                 SEQNR type ZDBTAB-LINENUM,
                 DATA type ZDBTAB-RAWDATA,
               END OF T_TAB.
    Select the data.
    SELECT linenum rawdata from ZDBTAB into table T_DATA
         WHERE repid = w_repname
         AND rundate = w_rundate
         ORDER BY linenum.
    Populate calling Internal Table.
    LOOP AT T-DATA.
    APPEND T_DATA to T_TAB.
    ENDLOOP.

    Hi Anuj,
    The unicode flag is active.
    When I run our report and then to try and save the list data a dump is happening at the following point
    LOOP AT T_TAB into L_WA.
    As I say, T_TAB consists of different fields and field types whereas L_WA is CHAR 800. The dump mentions UC_OBJECTS_NOT_CONVERTIBLE
    When I try to load a saved list the dump is happening at the following point
    APPEND T_DATA-RAWDATA to T_TAB.
    T_DATA-RAWDATA is type LCHR and T_TAB consists of different fields and field types.
    In both examples the dumps mention UC_OBJECTS_NOT_CONVERTIBLE
    Regards
    C

  • I am having issues with Sidebar files not appearing from within InDesign CS5.5. They show up fine from other Adobe applications. Using OS10.6.8.

    I am having issues with Sidebar files not appearing from within InDesign CS5.5. They show up fine from other Adobe applications. Using OS10.6.8.

    I would first of all trash the preference file for InDesign, make sure the application is closed then find the prefs in
    /Users/USER NAME/Library/Preferences/Adobe InDesign and just throw the entire folder away, it will generate a new one after you launch InDesign again.
    Now launch InDesign and see if the problems are resolved.
    If not I would repair your permissions on your hard drive wih disk utility, and if that fails then di-install InDesign and re-install that single application.
    Let me know if any of these suggestions work for you
    I will be checking my email although you might have to wait for a response as I will be taking a microlight flight over the Victoria Falls tomorrow. Yay can hardly wait.

  • I can not purchase from within the application clash of clans where necessary to answer the security questions that forgot their answers please help thank you

    I can not purchase from within the application clash of clans where necessary to answer the security questions that forgot their answers please help thank you

    If you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then you can go to https://appleid.apple.com/ and click 'Manage your Apple ID' on the right-hand side of that page and log into your account. Then click on 'Password and Security' on the left-hand side of that page and on the right-hand side you should see an option to send security question reset info to your rescue email address.
    If you don't have a rescue email address (you won't be able to add one until you can answer 2 of your questions) then see if this user tip helps : https://discussions.apple.com/docs/DOC-4551
    e.g. you can try contacting iTunes Support : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Account Management , and then try Apple ID Account Security
    or try ringing Apple in your country and ask to talk to the Accounts Security Team : http://support.apple.com/kb/HE57
    When they've been reset you can then use the steps half-way down this page to add a rescue email address for potential future use : http://support.apple.com/kb/HT5312

  • HT4199 I need help with getting my printer to print, PLEASE.

    I need help with getting my printer to print, Please.

    What have you done so far?
    I suggest you connect it via a usb  cable first.  Once you get the printer working, move to wifi.  You will have to use an existing printer usb cable or purchase a cable.  Be sure to get the correct cable.  Ask for help.
    The warrenty indicates there is phone support.  Give HP a call.
    Warranty
    One-year limited hardware warranty; 24-hour, 7 days a week phone support
    Robert

  • Using System.err.println() from within the classes of WAS ?

    hi,
    I am using admin.jar,a jar file which is being used by Web Application Server in my own class.
    I am referencing some of the classes from admin.jar from my class.
    I tried to print some trace statements,using System.err.println() from within the classes in admin.jar but they did not reflect in defaulttrace0.trc.
    I made these changes in the admin.jar being used by WAS.
    I restarted the server and even restarted the machine but without success.
    I want to know how to print System.out.println() statements from within the classes in admin.jar.
    Also, am i looking for these statements in the right file for eg. defaulttrace0.trc. or is it some other file that i need to look into.
    I need urgent help on this.
    Reward points assured.
    thanks a lot.
    Saurav

    thanks craig,
    ur answer has helped me a lot.but it didnt quite help me.
    nevertheless i am trying to set different levels of severity.
    Is there anything else that i can do.
    Also,i commented out a line of code today in one of the class DataSourceManagerImpl.java in sapj2eenginedeploy.jar
    for eg. temp.delete in it deploy method.Buth that line still executed.
    I m totally lost as to wht to do.
    I m trying to create a datasource from my application in WAS.For that i m using the WAS APIs.But its not working completely.
    I am using the above jar and its method createdatasource.
    I am callin it from my application's class.
    It creates a datasource and i can see it in JDBC Connector list in Visual Administrator.But it appears with red sign meaning its not started.When i start it from the tool then it starts.
    But in defaulttrace.trc file it shows an error "FileNotFindException". This happens,and i am very much sure, in the deploy() of DataSourceManagerImpl.java class of sapj2eenginedeploy.jar.
    i want to apply println inside this method so i may know where exactly i ma getting the error and get so more info so i may solve my problem.
    pls help me.
    its really urgent.
    thanks again
    saurav

  • Registration from within the product doesn't work?

    Hi!
    I bought a pre-installed license of photoshop and acrobat with my computer. I registered both products to my Adobe ID when I started the programs for the first time.
    But only Photoshop 11 shows up there and now shows me a serial number of the product.
    The Acrobat program works fine and seems to be registered (at least it doesn't ask for registration anymore), but doesn't show up in my account.
    So I don't get a serial number this way. The seller (Sony Online Store) tells me that they don't hand out any serial numbers since the pre-installed programs are supposed the register automatically (as photoshop indeed did).
    I tried to get help from Adobe Support, but they just keep asking me about the serial number ... instead of telling me how to get it ... or why the registration from within the product works fine for one product but not for the other.
    So what can I do?
    Cheers,
    Martin

    You might check with the Kim Komando site about reading your SN. It is strange that Sony will not give it to you. If you ever have to reinstall it, you will need the SN. Also, I recommend you backup the installation file for these programs (you may have to download the trials) so that you have them for the future. It may be that they are on a CD or separate HD partition and that would be fine. However, it is always a good idea to have a backup of software you own for any time you need to reinstall for some reason (if you read the posts on this forum very much, you find a lot of folks reinstalling or trying to find the software they did not backup so they can reinstall on a new computer or replacement HD after a crash).

  • Find out current old heap usage from within the process

    Hello!
    We use the CMS garbage collector and need a way to find out how much memory is used of the old heap by reachable objects. This we have to do from within the process (not using jvmstat or jstat etc.).
    Since there is no way to distinguish between reachable and non-reachable objects (except for traversing the entire heap... -- or are there other possibilities?) our idea is to get the amount of used memory right after a garbage collection in the old heap.
    Using Java 1.5, this can be done by
    java.lang.management.MemoryPoolMXBean pool = <Pool for Old Generation>;
    pool.getUsage().getUsed();However, java.lang.management is only available in Java 1.5.
    Therefore my first question: Is there a similar way of finding out old heap usage in Java 1.4?
    There is another problem with this method: By calling pool.getUsage().getUsed();, one has to know when a GC has occurred (this could be done by calling it in an interval of x seconds -- if the current value is lower than the one before, a GC must hava occurred). A better way would be to use pool.getCollectionUsage().getUsed();, but this seems not to work for the CMS collector.
    Second question: Is pool.getCollectionUsage().getUsed(); really not working with CMS, or are we just doing it in a wrong way? Are there other ways of finding out the used memory in the old heap after a GC even when using the CMS?
    Thanks for any help!
    Regards,
    Nicolas Michael

    Hi Nicolas,
    There is no API in 1.4 to get the after GC memory usage of the old generation. The only thing close to it is (Runtime.totalMemory - Runtime.freeMemory) but it is the approx amount of memory used for the heap (not just the old generation).
    MemoryPoolMXBean.getCollectionUsage() returns the after GC MemoryUsage. This method should work for all collectors. I have a simple test case that shows it working fine with CMS. It shows the same value as the -XX:+PrintGCDetails shows.
    If you have a test case showing that this method doesn't work correctly, please submit a bug along with the test case. We'll investigate it.
    Thanks
    Mandy

Maybe you are looking for