Skip to main content

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

 

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


Hi Alexander

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

I guess it’s a modelling dataset.

Ganners

 

 


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>
...

 


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

 

Did it manually in the end.


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...


<?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


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.


Thanks. Same result on a test server.

 


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.


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?


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>

 


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!

🤔


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


Hi Stephan

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

Ganners


Reply