Skip to main content
Question

Sample XML for PSO

  • October 29, 2024
  • 14 replies
  • 146 views

Forum|alt.badge.img+7

Hi

There are plenty of XML examples for doing things in FSM but there doesn’t seem to be much for PSO.

Are there any resources?

I am trying to add a specific skill to a number of resources.

Thanks

Ganners

 

14 replies

Alexander Heinze
Ultimate Hero (Employee)
Forum|alt.badge.img+23
  • Ultimate Hero (Employee)
  • October 29, 2024

Just to clarify - you need a sample XML for a Change message? Scheduling or Modelling Dataset? 


Forum|alt.badge.img+7
  • Author
  • Do Gooder (Customer)
  • October 29, 2024

Hi Alexander

» I am trying to add a specific skill to a number of resources.

I guess it’s a modelling dataset.

Ganners

 

 


Alexander Heinze
Ultimate Hero (Employee)
Forum|alt.badge.img+23
  • Ultimate Hero (Employee)
  • October 29, 2024

The XML for the Modelling Dataset is fairly simple:

  <RAM_Resource_Skill>
<ram_resource_id>YourResourceID1</ram_resource_id>
<ram_skill_id>YourSkillId</ram_skill_id>
</RAM_Resource_Skill>
<RAM_Resource_Skill>
<ram_resource_id>YourResourceID2</ram_resource_id>
<ram_skill_id>YourSkillId</ram_skill_id>
</RAM_Resource_Skill>
...

For the Scheduling Dataset it would be:

  <Resource_Skill>
<resource_id>YourResourceID1</resource_id>
<skill_id>YourSkillId</skill_id>
</Resource_Skill>
...

 


Forum|alt.badge.img+7
  • Author
  • Do Gooder (Customer)
  • October 31, 2024

Thanks for the reply. Not sure why but it didn’t actually work!

 

Did it manually in the end.


Alexander Heinze
Ultimate Hero (Employee)
Forum|alt.badge.img+23
  • Ultimate Hero (Employee)
  • October 31, 2024

Thanks for the reply. Not sure why but it didn’t actually work!

 

Did it manually in the end.

Can you share the complete message that you sent (and that didn’t work)? Maybe we can find the root cause for next time...


Forum|alt.badge.img+7
  • Author
  • Do Gooder (Customer)
  • October 31, 2024

<?xml version="1.0" standalone="true"?>
<dsScheduleData xmlns="http://360Scheduling.com/Schema/dsScheduleData.xsd">
<RAM_Resource_Skill>
    <ram_resource_id>115428</ram_resource_id>
    <ram_skill_id>Local Barcode Server</ram_skill_id>
</RAM_Resource_Skill>
<Input_Reference>
    <datetime>2024-10-29T15:00:00+00:00</datetime>
    <id>Add skill Local Barcode Server</id>
    <input_type>LOAD</input_type>
    <schedule_data>CONTINUOUS</schedule_data>
    <load_status>0</load_status>
    <duration>P5D</duration>
    <process_type>STATIC</process_type>
</Input_Reference>
</dsScheduleData>
 

I think it was something along these lines. I saved the XML out to a file and dropped it onto the \IFS\Input folder


Alexander Heinze
Ultimate Hero (Employee)
Forum|alt.badge.img+23
  • Ultimate Hero (Employee)
  • October 31, 2024

When you use <input_type>LOAD</input_type>, it’s a LOAD i.e., it overwrites everything. That also means you try to give a non-existing skill to a non-existing resource, which PSO ignores. Try to send <input_type>CHANGE</input_type> instead.


Forum|alt.badge.img+7
  • Author
  • Do Gooder (Customer)
  • October 31, 2024

Thanks. Same result on a test server.

 


StephanS
Hero (Partner)
Forum|alt.badge.img+8
  • Hero (Partner)
  • November 1, 2024

Can it be the difference between Schedule and Moddeling schema? As you are using the entity RAM_Resource_Skill but Scheduling schema (dsScheduleData). The RAM_Resource_Skill belongs to the Modelling schema. 

PSO Documenation has 2 quite large and detailed documents regarding the XML's with all the attributes and examples in it: Scheduling Schema and Modelling Schema PDF's. I'd those to confirm your XML if it's correct. The files can be found in your PSO Installation folder, subfolder Documenation.


Forum|alt.badge.img+7
  • Author
  • Do Gooder (Customer)
  • November 3, 2024

Hi Stephan

I have looked at the documentation but it doesn’t seem to contain a clear reference including the headers and/or XSD references.

Anyone?


Forum|alt.badge.img+7
  • Author
  • Do Gooder (Customer)
  • November 4, 2024

Hi all

Thanks for your help but now have this working…

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<DsModelling xmlns="http://360Scheduling.com/Schema/DsModelling.xsd">
<RAM_Update>
<dataset_id>360</dataset_id>
<organisation_id>1</organisation_id>
<ram_update_type_id>CHANGE</ram_update_type_id>
</RAM_Update>
<DsModelling_Info>
<dataset_id>360</dataset_id>
<rota_id>360</rota_id>
</DsModelling_Info>
<RAM_Resource_Skill>
<ram_resource_id>1331</ram_resource_id>
<ram_skill_id>Local Barcode Server</ram_skill_id>
</RAM_Resource_Skill>
</DsModelling>

 


Forum|alt.badge.img+7
  • Author
  • Do Gooder (Customer)
  • November 4, 2024

To be honest quite why there isn’t a library of this kind of stuff available online or in the documentation is a bit of a mystery!

🤔


StephanS
Hero (Partner)
Forum|alt.badge.img+8
  • Hero (Partner)
  • November 4, 2024

Hi,

The information about the Schemas is in the interface guide, it looks right to use the Modelling schema for RAM related entities.

 

 

Looking at your XML, it looks a bit strange that your ram_skill_id value is a value with spaces. Does that skill exist already in your PSO database, ARP, with that key? 

What does the events in PSO say when you import this message? What kind of error/warning do you see? 

Cheers,

Stephan


Forum|alt.badge.img+7
  • Author
  • Do Gooder (Customer)
  • November 6, 2024

Hi Stephan

Thanks for your response but as above I now have it working.

Ganners