::xotcl::Object ::xotcl::Object ::xowf::Context ::xowf::Context → require ::xowf::Context->::xotcl::Object

Class ::xowf::Context

::xowf::Context[i] create ... \
           [ -all_roles (default "false") ] \
           [ -current_state (default "[self]::initial") ] \
           [ -default_definition (default "") ] \
           [ -in_role in_role ] \
           [ -object object ] \
           [ -wf_container wf_container ] \
           [ -workflow_definition workflow_definition ]

Defined in

Class Relations

  • class: ::xotcl::Class[i]
  • superclass: ::xotcl::Object[i]

Methods (to be applied on the object)

  • require (scripted, public)

     xowf::Context[i] require [ -new ] obj

    Create the workflow context for an object if needed.

    Switches:
    -new (optional, defaults to "false")
    Discard an existing context and create a fresh one.
    Parameters:
    obj (required)
    Workflow object.
    Returns:
    The initialized workflow context, or the existing context.

    Testcases:
    create_workflow_with_instance