%3 ::xowiki::formfield::workflow_definition ::xowiki::formfield::workflow_definition as_graph check=workflow pretty_value ::xowiki::formfield::textarea ::xowiki::formfield::textarea add_statistics clear_editor_mixins initialize render_as_div render_input set_feedback ::xowiki::formfield::workflow_definition->::xowiki::formfield::textarea ::xowiki::formfield::menuentries ::xowiki::formfield::menuentries pretty_value ::xowiki::formfield::menuentries->::xowiki::formfield::textarea ::xowiki::formfield::code_listing ::xowiki::formfield::code_listing pretty_value ::xowiki::formfield::code_listing->::xowiki::formfield::textarea ::xowiki::formfield::richtext ::xowiki::formfield::richtext check=safe_html editor initialize preset_conf pretty_value ::xowiki::formfield::richtext->::xowiki::formfield::textarea ::xowiki::formfield::form_constraints ::xowiki::formfield::form_constraints ::xowiki::formfield::form_constraints->::xowiki::formfield::textarea ::xowiki::formfield::FormField ::xowiki::formfield::FormField → fc_decode → fc_encode → get_from_name → get_single_spec → interprete_condition CSSclass_list_add add_statistics answer_check=AND answer_check=answer_words answer_check=btwn answer_check=contains answer_check=contains-not answer_check=eq answer_check=ge answer_check=gt answer_check=in answer_check=le answer_check=lt answer_check=match answer_is_correct asWidgetSpec behavior booleanAttributes config_from_spec convert_to_external convert_to_internal describe dict_to_fc dict_to_spec dict_value escape_message_keys field_value handle_transmit_always has_instance_variable init initialize interprete_single_spec is_disabled is_repeat_template_p leaf_components localize make_correct pretty_image pretty_value process_correct_when_modifier remove_omit render render_answer_statistics render_collapsed render_disabled_as_div render_error_msg render_form_widget render_help_text render_input render_item render_localizer render_modal render_result_statistics render_word_statistics repeat repeat_add_label resetBooleanAttributes reset_on_validation_error reset_parameter same_value set_disabled set_feedback set_is_repeat_template stats_record_count validate validation_check value_if_nothing_is_returned_from_form word_statistics ::xowiki::formfield::textarea->::xowiki::formfield::FormField ::xo::tdom::Object ::xo::tdom::Object ::xowiki::formfield::FormField->::xo::tdom::Object

Class ::xowiki::formfield::workflow_definition

::xowiki::formfield::workflow_definition[i] create ... \
           [ -cols (default "80") ] \
           [ -dpi (default "120") ] \
           [ -rows (default "20") ]

Class Relations

  • class: ::xotcl::Class[i]
  • superclass: ::xowiki::formfield::textarea[i]
::xotcl::Class create ::xowiki::formfield::workflow_definition \
     -superclass ::xowiki::formfield::textarea

Methods (to be applied on instances)

  • as_graph (scripted)

    set ctx [::xowf::Context new -object ${:object}  -all_roles true -in_role none  -workflow_definition [:value]  -destroy_on_cleanup ]
    return [$ctx as_graph -dpi ${:dpi} -style "max-width: 20%;"]
  • check=workflow (scripted)

    # Do we have a syntax error in the workflow definition?
    if {![catch {set ctx [::xowf::Context new  -object ${:object}  -all_roles true  -workflow_definition [:value]  -destroy_on_cleanup ]} errorMsg]} {
      $ctx initialize_context ${:object}
      ${:object} wf_context $ctx
      unset errorMsg
      set info [$ctx check]
      if {[dict get $info rc] == 1} {
        set errorMsg [dict get $info errorMsg]
      }
    }
    
    if {[info exists errorMsg]} {
      #:msg errorMsg=$errorMsg
      :uplevel [list set errorMsg $errorMsg]
      return 0
    }
    return 1
  • cols (setter)

  • dpi (setter)

  • pretty_value (scripted)

    ${:object} do_substitutions 0
    set text [string map [list & "&amp;" < "&lt;" > "&gt;" \" "&quot;" ' "&apos;" @ "&#64;"] [:value]]
    return "<div style='width: 65%; overflow:auto;float: left;'>
    <pre class='code'>$text</pre></div>
    <div>[:as_graph]</div><div class='visual-clear'></div>
        [${:object} include my-refers]
       "
  • rows (setter)

  • validator (setter)