Creating an Action Sequence for Commands
The M2M user is given access to model transformation and M2M configurator is given access to model transformation configuration in Innovator when an action sequence is created.
Prerequisites
You have the Configure privilege.
Context
Creating an action sequence for model transformation allows you to carry out model transformations from Innovator. You can access the model transformation via Extras>Engineering Actions>Commands.
How to proceed
-
Open the configuration editor in Innovator.
-
Select one of your profiles which you can create the action sequence in or create a new profile if necessary.
-
Select Edit>Lock.
The profile is marked as locked if you have sufficient rights.
-
Jump to the action sequences with View>Actions.
-
Create an action sequence with Create>Action Sequence>Java Program Sequence.
-
Select the newly-created action sequence.
- Select Edit>Properties.
The dialog of the same name appears.
-
Enter a suitable name and localized name.
-
Select an icon.
-
Close the dialog.
-
Select the engineering action from the list of profile elements on the right-hand side.
- Select Edit>Properties.
The dialog of the same name appears.
-
Enter a name.
-
Enter "$INODIR/java" as the working directory.
-
If you want to configure an action, then enter "de.mid.innovator.m2msdk.application.ConfigurationApplication" as a location, otherwise enter "de.mid.innovator.m2msdk.application.MappingApplication".
-
Enter the argument "Option=<path where the option file is located>".
-
Note
You can enter an absolute or relative path. Files with a relative path are first looked for in the working directory and then in the class path. Ensure that the option file exists there, e.g. by copying an existing option file there. If the file was not found, the respective file from the $INODIR/java/M2MSDK/configuration/de/mid directory will be used instead. If a file cannot be written then a copy of it is made and saved in the temporary directory instead.
-
Jump to the Class Path tab and enter the following text here:
"./M2MSDK/bin/M2MSDK.jar ./ModelCore/bin/ModelCore.jar ./MappingDialogTemplates/bin/MappingDialogTemplates.jar ./MappingCore/bin/MappingCore.jar ./M2MSDK/lib/jdom-2.0.2.jar ./M2MSDK/lib/commons-io-2.4.jar ./M2MSDK/lib/RunCC.jar"
-
Close the dialog.
-
Jump to the Execution Rights view.
-
Add the action sequences to the user roles accordingly to the M2M transformer, M2M configurator and SDK developer roles, depending on which roles should be able to perform the action sequence.
-
Jump to the Menus view.
-
Select your profile from the tree on the left-hand side and then Innovator-specific::Innovator model.
-
Add the action sequence to this model.
