Esempio n. 1
0
class SimpleDecision(BaseAssignableActivity):

    attributes = BaseAssignableActivity.attributes + (WorkflowAttribute(
        'decision_notice', 'decision_notice',
        'Describing the task for the decision.'), )

    checkpoints = BaseAssignableActivity.checkpoints + (
        ExitFromNode("accept"),
        ExitFromNode("reject"),
    )
Esempio n. 2
0
class Decision(BaseAssignableActivity):

    known_decision_modi = ['first_yes', 'all_yes']

    attributes = BaseAssignableActivity.attributes + (
        WorkflowAttribute('decision_notice', 'decision_notice',
                          'Describing the task for the decision.'),
        WorkflowAttribute('decision_modus', 'decision_modus',
                          'One of self.known_decision_modi',
                          required=True,
                          vocabulary=known_decision_modi),
        )

    checkpoints = BaseAssignableActivity.checkpoints + (
        ExitFromNode("accept"),
        ExitFromNode("reject"),
        )
Esempio n. 3
0
class Configuration(BaseAssignableActivity):

    attributes = BaseAssignableActivity.attributes + (
        # viewUrlExpression overwrites existing viewUrlExpression
        WorkflowAttribute('viewUrlExpression', 'view_url_expr',
                          '(TALES expression) URL to "view" a  workitem, '
                          'e.g. "Edit document" points to the edit-tab'),
        ConfiguresAttribute('configures', 'configures',
                          'Other activities which are configured by this '
                          'activity or None as marker for all activities.',
                          encoding='ascii', datatype=tuple),
        )

    checkpoints = BaseAssignableActivity.checkpoints + (
        ExitFromNode("complete"),
        )
Esempio n. 4
0
class BaseAutomaticActivity(BaseActivity):

    checkpoints = BaseActivity.checkpoints + (
        ExitFromNode("continue"),
        )