org.cristalise.dsl.scaffold.state_groovy.tmpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cristalise-dsl Show documentation
Show all versions of cristalise-dsl Show documentation
CRISTAL-iSE Domain Specific Language module for bootstrapping and funtional testing
states = ['ACTIVE', 'DEACTIVATED']
def activateAct = Activity('State_Activate', 0) {
Property('ItemProperty.State': states[0])
}
def deactivateAct = Activity('State_Deactivate', 0) {
Property('ItemProperty.State': states[1])
}
def stateWf = Workflow('State_Manage', 0) {
ElemActDef(activateAct)
ElemActDef(deactivateAct)
}