XML import and export(Schedule command)

XML import and export

This feature imports and exports scheduling commands in XML format text files.


XML import

Imports scheduling commands in an XML format text file.
When importing, data will not be merged with existing objects but will always be added as new objects. (Even when objects under the same names already exist in Asprova, imported objects will be regarded as new additions.)

When Asprova imports an XML file that contains objects that do not exist in Asprova, the result will depend on the setting of the property "Auto-generate object" of the property definition class.
For example, in the case of "Target resource" of the property "Evaluation expression" of the scheduling parameter, if an XML file contains a resource named "Mixer" and the resource table of Asprova to which to import the XML file does not contain a resource of which the code is "Mixer", the resource object will be automatically generated when the property "Auto-generate object" is set to "Yes" for "Target resource" (ResEval_Resource), and the imported data will be ignored when the property is set to "No." That is to say, in the above example, the "Auto generate object" property in the property definition of the "target resource" (ResEval_Resource) is referred.

Read-only properties cannot be imported. When trying to import, they will be ignored.


XML export

Exports scheduling commands to an XML format text file.
Selecting [File] - [XML Export] from the menu will save the entire scheduling parameters in XML format. If you select [XML Export] from the left part popup menu of the scheduling parameter table and so on, the commands you selected and those listed underneath the selected commands will be saved in XML format.


Importing and exporting of scheduling parameters including user registered expressions in XML format (Ver.12.0.1.0 and later)

If scheduling parameters containing expressions that have been saved with a name, such as dispatching keys, are exported to an XML file, the parameters including the names can be imported.
Scheduling parameters that include expressions created in a project can be restored in another project, too.


If the same expression code already exists, importing it will display the following message in a message window. ( After Ver.12.0.2 )

User registered expression <ME.Work_Order.Order_DisplayOrder> with the code <TestDispatchingKey01> was included in the import object, but there is already a user registered expression with the same code, so the code was change to <TestDispatchingKey01 (2)> before importing.

You can jump from a message detail dialog to the expression table to view both expressions.

To change a code or the like, you can do it from here.

 

If the same expression already exists, importing it will display the following message in a message window. ( After Ver.12.0.2 )

Since the user registered expression <ME.Work_Order.Order_Color> was imported not with the registered code <TestDispatchingKey01> but with <TestDispatchingKey11>, the user registered expression code was changed to <TestDispatchingKey11>.

You can jump from a message detail dialog to the expression table to view the imported expression.

To change a code or the like, you can do it from here.

 

XML file format

The file format of an XML exported file looks as follows.


Tags/Attributes

<Asprova>

Indicates the start of Asprova's data.

<AppVersion>

A version of Asprova. This item can be omitted when an XML file is created in an external system.

<XMLVersion>

A version of Asprova's XML format. If this item is omitted, the XML version will be regarded as the latest.


Example:<Asprova AppVersion="3.0.0.0" XMLVersion="1.0">


<WBSAlias>

Describes the class to which the data relate. This item cannot be omitted. Currently, since you can only import/export scheduling commands, you will describe this item as follows.


Example:<WBSAlias Code="SchedulingCommand">


Others

You can describe a property name in a tag (attribute).

Example 1:The class is the assign manufacturing orders class.

<Object_ClassDef>ASPCommand_AssignManufacturingOrders</Object_ClassDef>

Example 2:Has a child named "Assign first processes".

<Child Code="Assign first processes">

Reserved characters "<", ">", and "&" in XML "will be converted respectively to escape sequences "<", ">", and "&" in text files.

Example:"Order_Priority>90&&Order_Priority<100" in Asprova
-> "Order_Priority>90&&Order_Priority<100" in XML file

(In a web browser, the above reserved characters will be displayed the same as Asprova.)

You cannot use short names of properties.

The event conditions object of a scheduling parameter is not owned by the parameter, but exists under a separate class root for event conditions. However for the purposes of XML export, event condition objects will be included in the XML as if they were a child of the parameter.
When imported, event condition objects will be created for scheduling parameters even if there is an existing event condition object of the same name.

キ From Ver. 15.0, if a command to be exported contains a reference execution command, it also recursively detects the reference scheduling parameter and exports it to an XML file as needed.

 Commands and conditions to be exportedWhether to export the reference scheduling parameter to an XML file
1Right-click popup menu on the scheduling parameter tableYes
2Right-click popup menu on custom menu tableYes
3Menu [XML Export] - [Custom menu]Yes
4menu [XML export] - [Schedule command]No
5Custom menu (local) when closing project in MES, etc.No
6Custom menu (DS) when closing project in MES, etc.No
7COM IF IASBProject::ExportXMLSchedulingParameterNo


HelpNo.:757460
© Since 2018 Asprova Corporation, All rights reserved.