This topic contains 3 replies, has 2 voices, and was last updated by zhex900 6 years, 9 months ago.
- Topic
Hi,
I trying to learn workflows. I can load this workflow and view in workflow definition. But when I try to view a contact it gives this error.
Here is my workflow.yml
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172workflows:contact_followup: # name of the workflowentity: Oro\Bundle\ContactBundle\Entity\Contact # workflow related entityentity_attribute: contact # attribute name of current entity that can be used in configurationstart_step: started # step that will be assigned automatically to new entitiesforce_autostart: false # if <code>start_step</code> is defined: force start workflow on entity creation like from cli, message queue (without any filters like applications, scopes, features)steps_display_ordered: true # defines whether all steps will be shown on view page in steps widgetdefaults:active: true # active by defaultpriority: 100 # has priority of 100applications: [ 'default' ] # web application availability levelsteps: # list of all existing steps in workflowstarted: # step where user should enter firstname and lastnameorder: 0 # order of step (ascending)allowed_transitions: # list of allowed transition from this step- follow_up # first name and last name should be entered on this transitionfollowup:order: 1allowed_transitions:- open- closedopen:order: 2allowed_transitions:- closedclosed:order: 3allowed_transitions:- reopenattributes: # list of all existing attributes in workflowcontact_status: # first name of a usertype: stringproperty_path: contact.contactStatus # path to entity property (automatically defined attribute metadata)transitions: # list of all existing transitions in workflowreopen: # transition from step "started" to "processed"step_to: followup # next step after transition performingtransition_definition: followup_transition_definition # link to definition of conditions and post actionsfrontend_options:icon: barfollow_up: # transition from step "started" to "processed"step_to: followup # next step after transition performingtransition_definition: followup_transition_definition # link to definition of conditions and post actionsfrontend_options:icon: baropen:step_to: opentransition_definition: open_transition_definitionfrontend_options:icon: barclosed:step_to: closedtransition_definition: closed_transition_definitionfrontend_options:icon: barform_options: # options which will be passed to form type of transitionattribute_fields: # list of attribute fields which will be showncontact_status: # attribute nameoptions: # list of form field options#form_type: choicerequired: true # define this field as requiredconstraints: # list of constraints- NotBlank: ~ # this field must be filledtransition_definitions: # list of all existing transition definitionsfollowup_transition_definition: # definitions for transition "schedule_transition", no extra conditions or actions hereactions: # list of action which will be performed after transition- '@assign_value': [contact.followupStatus, 'Follow-up']open_transition_definition: # definitions for transition "schedule_transition", no extra conditions or actions hereactions: # list of action which will be performed after transition- '@assign_value': [contact.followupStatus, 'Open']closed_transition_definition: # definitions for transition "schedule_transition", no extra conditions or actions hereactions: # list of action which will be performed after transition- '@assign_value': [contact.followupStatus, 'Closed']123456789101112131415161718192021222324252627282930#workflows.en.ymloro:workflow:contact_followup:step:started:label: Startedfollowup:label: Follow-upopen:label: Openclosed:label: Closedattribute:contact_status:label: 'Contact Status'transition:reopen:lable: Reopenwarning_message: ''follow_up:label: Follow-upwarning_message: ''open:label: Openwarning_message: ''closed:label: Closedwarning_message: ''label: 'Contact Follow-up'
The forum ‘OroCRM – Programming Questions’ is closed to new topics and replies.