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)
}
