This question is locked. New answers and comments are not allowed.
WIth the Designer Context Method, I want to Query OA and return a single object back to the WF designer to play around with
I don't see any OQL query methods in my context....
Or is there a more efficient way to return a single object?...I'd try a Predicate, but I'm not sure of the VB style syntax to do that in the WF4 designer
public class OASingleObjectOQL<TResult> : NativeActivity<TResult> where TResult : class{ [RequiredArgument] [Category("InArgs")] public InArgument<string> OQLQuery { get; set; } public OASingleObjectOQL() { this.Constraints.Add(ConstraintHelper.VerifyParentIsObjectContextScope(this)); } protected override void Execute(NativeActivityContext context) { OAObjectContext oaObjectContext = context.Properties.Find(OAObjectContext.ObjectContextPropertyName) as OAObjectContext; if (oaObjectContext == null) { throw new ValidationException("OpenAccess Object Context not found"); } var output = ""; //QUERY CODE...? // set the result value this.Result.Set(context, output); } }I don't see any OQL query methods in my context....
Or is there a more efficient way to return a single object?...I'd try a Predicate, but I'm not sure of the VB style syntax to do that in the WF4 designer