Exporting and Importing Model Data Using the CLI
You can export diagrams, metadata, and Repository data.
Exporting Diagrams Using CLI
Call up
-
Interactive mode
startcli [-u <user account>] [-p <password>] ... export --exportWorkflowGroup [<diagram group>] --exportWorkflowUser <diagram group owner> --exportWorkflowType <workflow type> --exportFile <file path to ZIP archive> [--exportWorkflowGroupExclude <exclude list>] [--exportTag <tag>]
bash -
Script mode
startcli --execCommand "export --exportWorkflowGroup [<diagram group>] --exportWorkflowUser <diagram group owner> --exportWorkflowType <workflow type> --exportFile <file path to ZIP archive> [--exportWorkflowGroupExclude <exclude list>] [--exportTag <tag>]
bash
Command options
Example
Exporting the metadata Duration
and Costs
into the ZIP archive c:\temp\export_INUBIT_2014_09_10.zip
.
-
Interactive mode
export --exportWorkflowUser jh --exportFile c:\temp\export_inubit_2014_09_10.zip --exportWorkflowType bpd --exportWorkflowGroup '' --exportWorkflowGroupExclude 'HR processes, iS60SP3'
bash -
Script mode
startcli -u jh -p inubit --execCommand "export --exportWorkflowUser jh --exportFile c:\temp\export_inubit_2014_09_10.zip --exportWorkflowType bpd --exportWorkflowGroup '' --exportWorkflowGroupExclude 'HR processes, iS60SP3'"
bashThe user whose diagrams are to be exported, must be logged in at the Process Engine via CLI, that is, users can only export their own diagrams.
Exporting Metadata Using CLI
Call up
-
Interactive mode
startcli [-u <user account>] [-p <password>] ... export --exportMetadata --exportMetadataNames '<metadata name(s)>' --exportFile <file path to ZIP archive>
bash -
Script mode
startcli [-u <user account>] [-p <password>] --execCommand "export --exportMetadata --exportMetadataNames '<metadata name(s)>' --exportFile <file path to ZIP archive>"
bash
Command options
Example
Exporting the metadata Duration
and Costs
into the ZIP archive c:\temp\export_metadata_2014_09_10.zip
.
-
Interactive mode
export --exportMetadata --exportMetadataNames 'Duration, Costs' --exportFile c:\temp\export_metadata_2014_09_10.zip
bash -
Script mode
startcli -u jh -p inubit --execCommand "export --exportMetadata --exportMetadataNames 'Duration, Costs' --exportFile c:\temp\export_metadata_2014_09_10.zip"
bash
Exporting Repository Data Using CLI
Call up
-
Interactive mode
startcli [-u <user account>] [-p <password>] ... export --exportRepositoryPath <Repository path> --exportFile <file path to ZIP archive>
bash -
Script mode
startcli [-u <user account>] [-p <password>] --execCommand "export --exportRepositoryPath <Repository path> --exportFile <file path to ZIP archive>"
bash
Command options
Example
Exporting the /Root/jh/BPM Rules
Repository path into the ZIP archive c:\temp\export_jh_repository.zip
.
-
Interactive mode
export --exportRepositoryPath '/Root/jh/BPM Rules' --exportFile c:\temp\export_jh_repository.zip
bash -
Script mode
startcli -u jh -p inubit --execCommand "export --exportRepositoryPath '/Root/jh/BPM Rules' --exportFile c:\temp\export_jh_repository.zip"
shell
Importing Data Using CLI
Usage
Import any data (workflows, repository files, users, user groups, and metadata) into the Process Engine.
The options ‑‑importUser
, ‑‑importUserGroup
, ‑‑importWorkflow
may be both primary and secondary options.
The primary option determines what data will be imported.
Call up
startcli -u<User> [-p<Password>] ... import <Option> [<arg>]
bash
Command options
Example
The option ‑‑importWorkflow
allows you to import workflows.
With the additional option ‑‑importUser inubit
, you specify the user inubit
, into which the workflows are to be imported.
startcli -u root --execCommand "import --importWorkflow --importUser inubit --importFile "E:\iS61test\inubit.diagramgroup_2014_09_16.zip""
bash
With the options ‑‑importUser
and --importFile
, you import a user archive into the given user group.
startcli -u root --execCommand "import --importUser inubit_group --importFile C:\inubit\ExportImport\inubit.user_2014_09_16.zip"
bash
LDAP_CLI_Sync_Template.xml
<?xml version='1.0' encoding='UTF-8'?>
<Property name="LDAPProperties" type="Map">
<Property name="AutoSynchronization" type="Boolean">false</Property>
<Property name="LoginCaching" type="Boolean">false</Property>
<Property name="UpdateInterval" type="TimePeriod">5400</Property>
<Property name="Host">0.0.0.0</Property>
<Property name="Port" type="Integer">389</Property>
<Property name="EnableEncryption" type="Boolean">false</Property>
<Property name="ServerAuth" type="Boolean">false</Property>
<Property name="ServerCertPath"></Property>
<Property name="LoginDN">cn=user,dc=company,dc=com</Property>
<Property name="Password" type="Password" encrypted="false"></Property>
<Property name="SearchDN">dc=company,dc=com</Property>
<Property name="Filter">(objectclass=*)</Property>
<Property name="Group" type="Boolean">false</Property>
<Property name="GroupFilter">(objectclass=*)</Property>
<Property name="GroupAttribute">member</Property>
<Property name="Role">Business Analyst</Property>
<Property name="UserGroup">admin</Property>
<Property name="UserDefaultPassword" type="Password" encrypted="false"></Property>
<Property name="LDAPAttributes" type="Map">
<Property name="Email">mail</Property>
<Property name="UserName">uid</Property>
<Property name="FirstName">givenName</Property>
<Property name="LastName">sn</Property>
</Property>
</Property>
xml