Workflow: how to evaluate an expression

Topics: Customizing Orchard, General, Writing modules
Mar 21, 2013 at 8:50 PM
I am unable to use the evaluate expression activity, not finding any place where I could input the expression to evaluate.

The start event of my workflow is an order creation, from this point I have some status I want to pool:
  • order with CB payment -> wait for paiment
  • order paid on invoice receipt -> generate an invoice
My first pb is checking the order status.
The second is generating an order.

Seems that to generate the order I must create my own activity, but for testing the order I was expecting something from the existing 'evaluate an expression' activity ?
Mar 21, 2013 at 8:58 PM
I am not sure this activity is actually implemented. Ideally it should use the new Orchard.CSharpScripting module. There is a good implementation sample in the ScriptValidationPart.
Mar 21, 2013 at 9:41 PM
I will look thanks.
Another small question: is it possible to trap an 'Item Saved' event in Orchard, because Item created doesn't mean the data is secured in DB, in teh same time I'am writing this I see that I could wait 5 minutes and be sure that the http transaction has ended .... ?
Mar 21, 2013 at 10:07 PM
Versioned is when it's saved, and maybe you want to use Published.