Expression​.Evaluate(​) - how to use it with propertyob​ject?

10-11  Source: Network gathering  Views:0 

Advertisement
Hi,
I code in a process model callback and would like to evaluate an expression with the Runstate.Caller context.
I found the method 
Expression.Evaluate (
evaluationContext, evaluationOptions = EvalOption_NoOptions)
This is exactly what I need. However, if I have a CallingStep.Expr, which is a expression, I can't access the Evaluate() function. It is not available, only the PropertyObjects functions are.
How can I cast it to be an Expression so I can access the function Evaluate?!
I though I could do:
Runstate.CallingStep.Expr.Evaluate(Runstate.Caller​, 0x0)
This would return the expression evaluated in the caller context as a PropertyObject.
But it's not the case, I'm missing something so TS know Runstate.CallingStep.Expr is an Expression... even if I add it to Watch panel, it shows it's an expression...
Thank you.
Solved!
Go to Solution.
I have an object of type Expression (from what I understand and from what the watch panel is showing) and I was expecting to be able to use the Evaluate() function.
Expression.Evaluate(seqContext, options)
But it seems that it's a propertyobject because only the function of this type are available.
I've attached a screenshot. Thank you.
Attachments:
watchPanel.PNG ‏14 KB
Related articles
  • Expression​.Evaluate(​) - how to use it with propertyob​ject? 10-11

    Hi, I code in a process model callback and would like to evaluate an expression with the Runstate.Caller context. I found the method  Expression.Evaluate ( evaluationContext, evaluationOptions = EvalOption_NoOptions) This is exactly what I need. Howe

  • How to use variables with 10-11

    I need to get the number of lines in internal table, which would be easy, using DESCRIBE TABLE itab LINES lines. But the problem is, that I get the name of this internal table in the field of another internal table, so I have to use the name of inter

  • How to use Terminal with KeySpan USB serial adaptor cable? 10-11

    I own a KeySpan model USA-19HS to use with our MacBookPro when working on clients networking equipment that require serial communication. I have used ZTerm with excellent luck, but it costs, and is yet another application that I dont really want. I w

  • How to Use Gmail With Apple's Mail? 10-11

    Answer: Now Itis not a Problem, Please go to this link and know how to solve this problem, Ihave configuir this in my mac pro. Have enjoy. http://picturemuseum.blogspot.com/2011/08/how-to-use-gmail-with-apple-mail.html http://mobilesuggestion.blogspo

  • How to use Count with Date Parameters 10-11

    Hello, I am having issues using the Count() function in conjunction with date parameters. This is a Siebel report and in my report I have 2 date parameters(From Date, To Date). In a nutshell I am basically trying to count Opportunities that has a sta

  • How to use javap with jar files ? 10-11

    how to use javap with jar files ? thanksAs long as the jar is on the class path, your gold. So, javap -classpath myjar.jar mypackage.MyClass ChuckRead other 2 answers

  • Help me!! How to use JavaScript with JSP ?? 10-11

    I am using JDeveloper and I created a screen in JSP which uses a bean for database connectivity and retriving info onto the page. The page has a ListBox where list items are populated from the database.My requirement is whenever the list is changed t

  • How to use log4net with C# clients 10-11

    Hi, Can anybody please give an example of how to use log4net with C# clients? Foe java clients you can use the <logging-config> <destination>log4j</destination> How do we use it with C# clients? Any example will be appreciated. Thanks. -

  • How to use assert with wireless toolkit? 10-11

    Hi, I am trying to find out how to use assert with wireless toolkit. I have found that I need to pass "-source 1.4" to the java compiler. But I can't find any documentation on how to do it. I'm using J2ME Wireless Toolkit 2.2. thanks LuddeHere's

  • How to use setSoTimeOut() with socket ?? 10-11

    HI All! I eagerly need to know how to use setSoTimeOut() with socket (on server side). Actually the scenario is that My Server accepts connection and waits for connected client to send data to it. I WANT TO KEEP, IF CLIENT DOENS'T SENDS ANY DATA TO S

  • How to use I18N with a custom validator? 10-11

    This is my custom validator:     public void validate(FacesContext context, UIComponent component, Object value) throws ValidatorException         Pattern pat=Pattern.compile("[email protected]+\\.[a-z]+");         Matcher m= pat.matcher(value.toString());  

  • How to use x264 with FCPX 10-11

    I used the automatic installer for x264. There were no instructions on how to use it with FCPX or compressor. Can someone offer a tip? Thanks 10.6.8 iMac 2009,1Youn can't use it in FCP, only with Compressor. In Compressor make a new QuickTime preset

  • How to use stylus with ipad2 10-11

    Just bought a stylus for taking notes but do not know how to use it with the ipad2? Some special apps required? Thanks!Take a look at Memo, Penultimate, and Draw Pad to name a few. Several in the app store.But you do need an app that will accept inpu

  • How to use Skype with FaceTime with iMac,iPad & iPhone? 11-30

    How to use Skype with FaceTime with iMac,iPad & iPhone?Skype does not interface with FaceTime. You cannot use one to contact a person who is using the other.Read other 2 answers

  • Need an example how to use SCAN_Start with a callback function 11-30

    I would appreciate if someone helps me with a working example of how to use SCAN_Start with a callback function. I need just a basic functionality: to specify a channel list (with gains probably), to start a data acquisition task and to receive data

  • How to use CVS with JDeveloper 11-30

    Hi all! I'm starting a new project and I would like to know how to use CVS with JDeveloper. This is my first project where I will have two more people working with me and I don't know what the better approach is. Should I use CVS that come with JDeve

  • How to use BAPI with Decision Dialogue 11-30

    Hi Gurus would you please let me know how to use BAPI with decision dialogue in guided procedure . I have a BAPI checking logon credentials for the user . how to use this BAPI for making decisions that is if the logon is correct then perform one proc

  • How to use annotation with GUI in swing 11-30

    hi, i am new to annotation. I know how to use this with classes, methods and java elements. I am developing a tool in applet to post comment on my notepad, but unable to find that how to use this with GUI of swing. I have gone through most of forums

  • How to use Siri with an IPad 2 iOS update to 7 11-30

    Hello all, i would like to Know  How to use Siri with my iPad 2.  My iPad turn on iOS 7.0.2 and i don t view this possibiliy .  Thank you allSorry, there's no Siri on iPad 2. Siri is available on iPhone 4s or later, iPad with Retina display, iPad min

  • How to use JMX with oc4j 11-30

    is there any document about how to use JMX with OC4J? the intention is that I would like to create an application, using JMX to manage OC4J, such dynamiclly adding connection pool, create data source. potentially, restart server, application ... is t