schemas/workflow.py
branch3.5
changeset 3303 f961392e7517
parent 3263 5129918c671b
child 3433 401ea5e03e9d
child 3444 0ad4ef5d3737
equal deleted inserted replaced
3302:6526febd9151 3303:f961392e7517
    25     workflow_of = SubjectRelation('CWEType', cardinality='+*',
    25     workflow_of = SubjectRelation('CWEType', cardinality='+*',
    26                                   description=_('entity types which may use this workflow'),
    26                                   description=_('entity types which may use this workflow'),
    27                                   constraints=[RQLConstraint('O final FALSE')])
    27                                   constraints=[RQLConstraint('O final FALSE')])
    28 
    28 
    29     initial_state = SubjectRelation('State', cardinality='?*',
    29     initial_state = SubjectRelation('State', cardinality='?*',
    30                                    # S initial_state O, O state_of S
       
    31                                    constraints=[RQLConstraint('O state_of S')],
    30                                    constraints=[RQLConstraint('O state_of S')],
    32                                    description=_('initial state for this workflow'))
    31                                    description=_('initial state for this workflow'))
    33 
    32 
    34 
    33 
    35 class default_workflow(RelationType):
    34 class default_workflow(RelationType):