Sam Devlin wrote:
> Hello,
> I am trying to allow the use of cel expressions in triggers as was
> previously suggested on this list as a useful feature to hopefully be
> implemented as part of the quest refactor. However, having succesfully
> implementing this yesterday in sequences and seqops I am struggling to
> do this in triggers.
>
> The celExpressionParameter's Get method requires a celParameterBlock
> be passed as an argument, that is then passed onto the iCelExpression
> execute method. A celParameterBlock is an optional argument to this
> method, but certain expressions query, and therefore need, the
> parameter block.

Do you know which ones?

>
> Triggers pass a parameter block to methods registered for callback
> when they fire. So this parameter block can be passed to rewards
> allowing the use of expressions there (as previously available) and
> subsequently can be passed on by the reward start sequence and used
> inside sequences and seqops (as now available).
>
> However, my complication comes from and my query is, how can we make
> use of celExpressionParameter's inside triggers when they require a
> celParameterBlock that is often not populated until the trigger fires?

I think the only thing that should be filled up when the trigger fires
are the trigger parameters (for example parameters from messages for the
message trigger), which are forwarded to the reward expressions (can be
caught with @parameter). In this case, that kind of expression doesn't
make sense, for the rest (like $this), i guess they are filled up
sooner, or you have to fill them up sonner yourself, or else that
parameter block doesn't apply in this case, i'm not totally sure... if
you need more details i can look up the code, but i think with this
notions should be enough for you.

Greetings!

 Pablo

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Cel-main mailing list
Cel-main@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cel-main

Reply via email to