Examples of message blocks

These are the examples of message blocks.

Visit

  <visit>
   <BLOCK type="visit">
    <work_order number="{activity_number}" status="{activity_status}" comments="{pr_comments}"/>
   </BLOCK>
  </visit>

Team

 <team>
   <BLOCK type="team-members">
    <team-member
     resource_external_id ="{resource_external_id}"
     resource_name = "{resource_name}"
     teamwork_start = "{activity_start_time:+{activity_start_time}}{activity_start_time:-{activity_service_window_start}}"
     teamwork_end  = "{activity_end_time:+{activity_end_time}}{activity_end_time:-{activity_service_window_end}}"
     teamwork_activity_number = "{activity_number}"
     teamwork_activity_worktype = "{activity_worktype}"
     teamwork_activity_duration = "{activity_duration}"
     teamwork_activity_time_slot = "{activity_time_slot}"
    />
   </BLOCK>
  </team>

Oncall_calendar

  regular_shift = "{calendar_shift}"
  
  <BLOCK type="oncall_calendar">
   oncall_shift = "{calendar_shift}"
  </BLOCK>

Activity_workskills

  Pattern:
  
  <desc><BLOCK type="activity_workskills">{activity_workskill},</BLOCK></desc>
  <details>
   <BLOCK type="activity_workskills">
    <skill label="{activity_workskill_label}" required="{activity_workskill_required_level}" preferable="{activity_workskill_preferable_level}"/>
   </BLOCK>
  </details>
  

Linked activities and preferred resources

  Pattern:
  
  <linked_activities>
   <BLOCK type="linked_activities: start-before">
    <activity link = "predecessor" min_delay = "{activity_link_min_interval}" max_delay = "{activity_link_max_interval}" date = "{date}" resource = "{resource_name}" number = "{activity_number}" worktype = "{activity_worktype}"/>
    
    <forbidden_resources>
     <BLOCK type="forbidden_resources">
      <resource resource = "{resource_name}"/>
     </BLOCK>
    </forbidden_resources>
    
    <required_resources>
     <BLOCK type="required_resources">
      <resource resource = "{resource_name}"/>
     </BLOCK>
    </required_resources>
    
    <preferred_resources>
     <BLOCK type="preferred_resources">
      <resource resource = "{resource_name}"/>
     </BLOCK>
    </preferred_resources>
    
    <resource_inventory>
     <BLOCK type="resource_inventory">
      <inventory serial = "{inventory_serial_number}" type="{inventory_type}"/>
     </BLOCK>
    </resource_inventory>
    
    </activity>
   </BLOCK>
   <BLOCK type="linked_activities: start-after">
    <activity link = "successor" min_delay = "{activity_link_min_interval}" max_delay = "{activity_link_max_interval}" date = "{date}" resource = "{resource_name}" number = "{activity_number}" worktype = "{activity_worktype}"/>
   </BLOCK>
   <BLOCK type="linked_activities: start-together">
    <activity link = "simultaneous" date = "{date}" resource = "{resource_name}" number = "{activity_number}" worktype = "{activity_worktype}"/>
   </BLOCK>
  </linked_activities>

Required inventory

 Pattern:
  <required_inventory>
   <BLOCK type="required_inventory">
    <item
     type="{required_inventory_type_label}"
     model="{required_inventory_model}"
     quantity="{required_inventory_quantity}"
    />
   </BLOCK>
  </required_inventory>
  
 </conbody>
</concept>