Custom Workflow in ax 2012

hello

How to add conditions on custom workflow in ax 2012.

Thanks

Darshana