Академический Документы
Профессиональный Документы
Культура Документы
System
Integrator Tools
May 3, 2016
Name Surname
surname@wedotechnologies.com
| Page 1
CONTACTS
WeDo Technologies 2015 strictly confidential information. All rights reserved.
BEFORE WE
START,
INTRODUCTIONS
TRAINER NAME
JOB TITLE
+ 000 93965xxxx
+ 000 000 000 000
name.surname
@wedotechnologies.com
May 3, 2016
| Page 2
TRAINING ICONS
WeDo Technologies 2015 strictly confidential information. All rights reserved.
During the training you will have in several slides a upper right corner icon, that will help you
understand what to do:
Pay Attention
Follow me
Hands on
May 3, 2016
| Page 3
Do it by yourself
AGENDA
1. Standalone/Integrated command line tool
WeDo Technologies 2015 strictly confidential information. All rights reserved.
2. Web Scheduler
3. Assited Migration Service - Dev to Tst to Production
AMS Export
AMS Import
AMS Manifest
Migration
May 3, 2016
| Page 5
May 3, 2016
1. Standalone/
Integrated
command line tool
| Page 6
Overview
The integrators have at their disposal several commands to help on their activities.
The command tools are available at two levels:
1)
Sever Level
2)
Instance Level
| Page 7
ENCRYPT-TEXT COMMAND
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Server Level
encrypt-text
Name
encrypt-text
Location
<base_directory>/bin
Options
Description
Optional
--help
-s --silent <Boolean>
-t --text <String>
The encrypt-text script is used to obscure the text and ensure privacy.
May 3, 2016
| Page 8
Server Level
Below is an output example for the execution of this operation. > ./encrypt-text -t
Password1
Text encryptor
Copyright (c) 2001-2007 WeDo Soft, All Rights Reserved
WeDo Soft a division of WeDo Consulting
9ADE26D7D93535B95E71B107A4D8B4FCB620BD441B4B7EF51E91F2DAD02360A4
The encrypted type argument can easily be defined, using ConfigMap, with the following
XML code:
May 3, 2016
<encrypted name="ArgumentName">EncryptedValue</encrypted>
| Page 9
AF-RUN-CMD COMMAND
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Server Level
af-run-cmd
Name
af-run-cmd
Location
<base_directory>/bin
Options
Description
--help
--host <String>
The executed operations parameter file. The file should be written in XML and follow
the
ParameterMap
structure
as
follows:
<parameter
type="Map">
<parameter
name="flow_run_id"
type="Integer">999</parameter>
</parameter>
--operation <String>
--username <String>
--password <String>
--port <String>
--ssl <String>
--uri <String>
| Page 10
--force <Boolean>
Optional
Server Level
Result:
Version (String) "WeDo Technologies (c) 2001-2015, Application Server - 3.2.0.195801"
May 3, 2016
| Page 11
AF-RUN-CMD COMMAND
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Instance Level
af-run-cmd
Name
af-run-cmd
Location
<base_directory>/bin
Options
Description
Optional
--help
--host <String>
The executed operations parameter file. The file should be written in XML and follow
the
ParameterMap
structure
as
follows:
<parameter
type="Map">
<parameter
name="flow_run_id"
type="Integer">999</parameter>
</parameter>
--operation <String>
--username <String>
--password <String>
--port <String>
--ssl <String>
--uri <String>
--force <Boolean>
The difference of this af-run-cmd to the one at server level is that this one have the
parameters; host, port and uri as optional, because it uses the host, port and uri that are
configured by default for the instance
May 3, 2016
| Page 12
May 3, 2016
8. Web Scheduler
| Page 13
AGENDA
WeDo Technologies 2015 strictly confidential information. All rights reserved.
2. Web Scheduler
May 3, 2016
| Page 14
SCHEDULER CONFIGURATION
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Scheduler Environment
The Scheduler is a very useful tool to configure jobs, in order to run them at a given time.
To access to Schedulers configuration panel, the user must create a new page, named
Configuration Area (Application RAIDRAS Configuration Area).
May 3, 2016
Settings Button
| Page 15
SCHEDULER CONFIGURATION
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Scheduler Environment
Once the Configuration Area page (1) is created, the Scheduler will be available on the
Scheduler Management Category (2).
May 3, 2016
| Page 16
SCHEDULER CONFIGURATION
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Select a Job
To configure the Scheduler, it is fundamental to Select a Job. On the Select Job tab, the
user must configure it, according with the following parameters:
May 3, 2016
| Page 17
SCHEDULER CONFIGURATION
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Select a Job
Recover Past Jobs Executions (3) When enabled, as the name suggests the system recovers
past Jobs Executions, in case the system is not available.
3
4
May 3, 2016
| Page 18
SCHEDULER CONFIGURATION
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Select a Job
Notifications Subscribers (5) Users which are going to receive the Previously selected
Notifications (4).
5
6
May 3, 2016
| Page 19
SCHEDULER CONFIGURATION
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Schedule Time
Once the Job is configured, it is fundamental to set up, the Job Schedule Time. To do so,
the user must fill the parameters, presented next:
May 3, 2016
Start Time (7) Date from which the scheduler can trigger the job execution.
Job Execution Frequency (8) Frequency with which the Job is triggered (Daily, Weekly,
Monthly, Yearly).
7
8
| Page 20
SCHEDULER CONFIGURATION
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Schedule Time
End After (10) Maximum number of times, the scheduler can trigger, the job execution. When
empty, there is no limit.
End by (11) Date from which the scheduler must stop the job execution.
9
10
11
May 3, 2016
| Page 21
SCHEDULER CONFIGURATION
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Job Configurations
On the last Scheduler tab, the user must define the parameters set out below:
May 3, 2016
12
13
14
| Page 22
May 3, 2016
3. Assited
Migration
Service - Dev to
Tst to
Production
| Page 23
AGENDA
WeDo Technologies 2015 strictly confidential information. All rights reserved.
2. Web Scheduler
3. Assited Migration Service - Dev to Tst to Production
May 3, 2016
AMS Export
AMS Import
AMS Manifest
Migration
| Page 24
Overview
AMS is a tool used to assist the user to select, export and import to other environments,
RAID objects that are stored in OMT (Object Management Toolkit)
To access to AMS configuration panel, the user must create a new page, named
Configuration Area (Application RAIDRAS Configuration Area).
May 3, 2016
Settings Button
| Page 25
AMS CONFIGURATION
WeDo Technologies 2015 strictly confidential information. All rights reserved.
AMS Environment
Once the Configuration Area page (1) is created, the AMS will be available on the AMS
Category (2).
May 3, 2016
| Page 26
May 3, 2016
AMS Export
| Page 27
AMS
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Export Objects
To Export Objects the user just have to click on the Export Objects Action
May 3, 2016
| Page 28
AMS
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Export Objects
May 3, 2016
| Page 29
AMS
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Export Objects
May 3, 2016
| Page 30
AMS
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Export Objects
May 3, 2016
| Page 31
AMS
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Export Objects
May 3, 2016
| Page 32
AMS
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Export Objects
May 3, 2016
| Page 33
AMS
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Export Objects
May 3, 2016
| Page 34
AMS
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Export Objects
It is possible to select if all objects selected in the category will be included or not in the
export file.
It is possible to select or deselect the object it self from a category of objects.
For instance to select the Generate Cases CBPM flow from the Category
CBPM.FlowObject
It is possible to include in the export all the objects that depends from a particular object,
by selecting the option Include Dependencies
May 3, 2016
| Page 35
AMS
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Export Objects
It is possible to check the Restriction Rules for the list of objects to export.
May 3, 2016
| Page 36
AMS
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Export Objects
It is possible to check the Restriction Rules for the list of objects to export.
May 3, 2016
| Page 37
AMS
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Export Objects
May 3, 2016
| Page 38
AMS
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Export Objects
May 3, 2016
| Page 39
TUTORIAL
May 3, 2016
| Page 40
May 3, 2016
AMS Import
| Page 41
AMS
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Import Objects
May 3, 2016
| Page 42
AMS
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Import Objects
May 3, 2016
| Page 43
AMS
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Import Objects
May 3, 2016
| Page 44
AMS
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Import Objects
May 3, 2016
| Page 45
AMS
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Import Objects
May 3, 2016
| Page 46
AMS
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Import Objects
May 3, 2016
| Page 47
TUTORIAL
May 3, 2016
| Page 48
May 3, 2016
AMS Manifest
| Page 49
AMS
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Create Manifest
May 3, 2016
| Page 50
AMS
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Create Manifest
The user can select the category of objects and/or objects to include in the manifest
May 3, 2016
| Page 51
AMS
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Create Manifest
The user can select the category of objects and/or objects to include in the manifest
May 3, 2016
| Page 52
AMS
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Create Manifest
May 3, 2016
| Page 53
AMS
WeDo Technologies 2015 strictly confidential information. All rights reserved.
List Manifest
It is possible to list all the manifest loaded in RAID by clicking in List Manifest
May 3, 2016
Check If the
Manifest as
the correct
structure
| Page 54
Load
manifests
from a file
Create a new
Manifest
AMS
WeDo Technologies 2015 strictly confidential information. All rights reserved.
List Manifest
It is possible to list all the manifest loaded in RAID by clicking in List Manifest
May 3, 2016
View, edit,
clone,
remove
| Page 55
Refresh
Manifest
dependencies
Start Export
from the
selected
Manifest
AMS
WeDo Technologies 2015 strictly confidential information. All rights reserved.
List Manifest
It is possible to list all the manifest loaded in RAID by clicking in List Manifest
May 3, 2016
View, edit,
clone,
remove
| Page 56
Refresh
Manifest
dependencies
Start Export
from the
selected
Manifest
AMS
List Manifest
May 3, 2016
| Page 57
May 3, 2016
Migration
| Page 58
MIGRATION
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Edit Connections
May 3, 2016
| Page 59
MIGRATION
Edit Connections
May 3, 2016
| Page 60
MIGRATION
Edit Connections
May 3, 2016
| Page 61
MIGRATION
Edit Connections
May 3, 2016
| Page 62
MIGRATION
Edit Connections
May 3, 2016
| Page 63
MIGRATION
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Edit Connections
May 3, 2016
| Page 64
MIGRATION
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Edit Connections
May 3, 2016
| Page 65
AGENDA
WeDo Technologies 2015 strictly confidential information. All rights reserved.
2. Web Scheduler
AMS Export
AMS Import
AMS Manifest
Migration
May 3, 2016
Export Tool
Replace Tool
Import Tool
| Page 66
May 3, 2016
4. Export Import
Tool
| Page 67
Overview
The Export and Import Tools are tools that can be use for different operations:
Most of the RAID configurations are on OMT (Object Management Toolkit), and to migrate it is
possible to use the AMS (Assisted Migration Services).
But RAID can have extra configurations/data that are not stored in OMT, to migrate that
configurations/data it is necessary to use the Export Import Tool.
May 3, 2016
| Page 68
May 3, 2016
Export Tool
| Page 69
EXPORT TOOL
To export the configurations is possible to be done in two ways:
Using the Export instance tool
ADM
Schema
RAID DEV
DAT
Schema
Overview
Filesystem
May 3, 2016
| Page 70
EXPORT TOOL
WeDo Technologies 2015 strictly confidential information. All rights reserved.
The export instance tool allows the user to export all database configurations from an
installed server
Exports only the configurations (data) from the product tables
May 3, 2016
<BASE_DIRECTORY>/bin/export-tables
--export-dir=<export-directory>
[ --tables="..." [ --tables="..." ... ] ]
[ --instance-name=<INSTANCE_NAME> ]
[ --user-filters=<user-filters.xml> ]
| Page 71
EXPORT TOOL
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Options
Description
Mandatory
-h,--help
Show help.
-d,--export-dir
-c,--driver-class
-r,--database-url
-i,--instance-name
Instance name to access to database configurations. This option is used in conjunction with s option. If
this option is omitted, by default App value is used.
-s,--data-source
Data source name used to establish the database connection. This option can only be used in conjunction
with i option.
-q,--quiet
-k,--keep-empty-tables
-t,--tables-file
-u,--user-filters
-nr,--split-data-tables
-th,--number-of-threads
May 3, 2016
| Page 72
ADM
Schema
DAT
Schema
ADM
Schema
| Page 73
Import
Export
Exported Files
Filesystem
May 3, 2016
RAID PRD
RAID DEV
DAT
Schema
TUTORIAL
Filesystem
EXPORT TOOL
WeDo Technologies 2015 strictly confidential information. All rights reserved.
TUTORIAL
May 3, 2016
| Page 74
EXPORT TOOL
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Usage:
May 3, 2016
<BASE_DIRECTORY>/bin/export-tables
--export-dir=<export-directory>
[ --tables="..." [ --tables="..." ... ] ]
[ --instance-name=<INSTANCE_NAME> ]
[ --user-filters=<user-filters.xml> ]
| Page 75
EXPORT TOOL
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Options
Description
-h,--help
Show help.
-d,--export-dir
-t,--tables
LIKE-pattern to specify the tables to export (Ex.: 'AF_%'). SELECT statements are also accepted, and
should return LIKE-patterns in the first column. If not specified, all available tables are exported. You can
repeat this option to specify several patterns. By default all tables are exported.
Mandatory
-c,--driver-class
-r,--database-url
-i,--instance-name
Instance name to access to database configurations. This option is used in conjunction with s option. If
this option is omitted, by default App value is used.
-s,--data-source
Data source name used to establish the database connection. This option can only be used in
conjunction with i option.
-u,--user-filters
-q,--quiet
-nr,--split-data-tables
-th,--number-of-threads
May 3, 2016
| Page 76
TUTORIAL
May 3, 2016
| Page 77
May 3, 2016
Export Structure
| Page 78
EXPORT STRUCTURE
Each export must be placed in its own directory structure, and contains an ExportInfo.xml
May 3, 2016
| Page 79
EXPORT STRUCTURE
Each table file consists of a ParameterMap describing the field structure and records to
insert
A sample of AF_T_OBJ_SPEC.xml file:
May 3, 2016
<parameter type="Map">
<parameter name="DeleteRelations" type="Array">
<parameter type="Map">
<parameter name="Fields" type="Array">
<parameter type="String">OBJ_SPEC_UUID</parameter>
</parameter>
<parameter name="Table" type="String">AF_L_OBJ_SPEC_CHILDS</parameter>
</parameter>
()
</parameter>
<parameter name="Fields" type="Array">
<parameter type="Map">
<parameter name="Name" type="String">OBJ_SPEC_UUID</parameter>
<parameter name="Type" type="String">STRING</parameter>
</parameter>
()
</parameter>
<parameter name="PrimaryKey" type="Array">
<parameter type="String">OBJ_SPEC_UUID</parameter>
</parameter>
<parameter name="Records" type="Array">
<parameter type="Array">
<parameter type="String">f6da5444-d890-4ddd-8d20-35d7c41c7666</parameter>
()
| Page 80
EXPORT STRUCTURE
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Under normal usage of export tools, the tables definition is handled automatically and
knowledge of their structure is not required
However, if its need to use/create a custom table definition file, you need to be familiar
with the file structure to use it correctly. Its structure is described below
A sample:
May 3, 2016
<?xml version="1.0"?>
<parameter type="Map">
<parameter name="Tables" type="Array">
<parameter type="Map">
<parameter name="Type" type="String">File</parameter>
<parameter name="Include" type="String">BaseTables-Definition.xml</parameter>
</parameter>
<parameter type="Map">
<parameter name="Type" type="String">Table</parameter>
<parameter name="Name" type="String">EXTRA_TABLE</parameter>
<parameter name="Filename" type="String">EXTRA_TABLE.xml</parameter>
<parameter name="Fields" type="Array"> ... </parameter>
<parameter name="PrimaryKey" type="Array">
<parameter type="String">
(...)
</parameter>
(...)
</parameter>
</parameter>
| Page 81
May 3, 2016
Filters
| Page 82
FILTERS
Filter files, may be used in export scripts as user-defined filters in addition to the
preconfigured product export definitions
In order to filter out the data that the user dont need in the export result.
A sample:
May 3, 2016
<?xml version="1.0"?>
<parameter type="Map">
<parameter name="Filters" type="Array">
<parameter type="Map">
<parameter name="Type" type="String">File</parameter>
<parameter name="Include" type="String">BaseExclusions.xml</parameter>
</parameter>
<parameter type="Map">
<parameter name="Type" type="String">Table</parameter>
<parameter name="Name" type="String">IM_R_JOBS</parameter>
<parameter name="PosRestrictions" type="Array">
(...)
</parameter>
</parameter>
</parameter>
| Page 83
FILTERS
Each of the entries in
PreRestrictions,
Restrictions or
PosRestrictions
is a ParameterMap of one of four types depending on the Type parameter.
Include
Exclude
IncludeFK
ExcludeFK
May 3, 2016
| Page 84
FILTERS
Include Sample
Exclude Sample
May 3, 2016
| Page 85
<parameter type="Map">
<parameter name="Type" type="String">Include</parameter>
<parameter name="Filter" type="Array">
<parameter type="Map">
<parameter name="Name" type="String">FLOW_NAME</parameter>
<parameter name="Match" type="String">Equal</parameter>
<parameter name="Value" type="String">Flow 3</parameter>
</parameter>
<parameter type="Map">
<parameter name="Name" type="String">FLOW_VERSION</parameter>
<parameter name="Match" type="String">Equal</parameter>
<parameter name="Value" type="String">1</parameter>
</parameter>
</parameter>
</parameter>
<parameter type="Map">
<parameter name="Type" type="String">Exclude</parameter>
<parameter name="Filter" type="Array"/>
</parameter>
FILTERS
WeDo Technologies 2015 strictly confidential information. All rights reserved.
These filters perform matching on each record based on the existence or not of a related
record in another previously exported table.
Records that match this validation are either explicitly included or excluded from the
If a table being extracted contains FK filters referencing another table not yet exported, that
table is exported before the current one continues.
An error only occurs if circular dependencies are found.
May 3, 2016
| Page 86
FILTERS
WeDo Technologies 2015 strictly confidential information. All rights reserved.
IncludeFK Sample
<parameter type="Map">
<parameter name="Type" type="String">IncludeFK</parameter>
<parameter name="RemoteTable" type="String">BPM_T_FLOWS</parameter>
<parameter name="FKFields" type="Array">
<parameter type="Map">
<parameter name="LocalName" type="String">BPM_FLOW_ID</parameter>
<parameter name="RemoteName" type="String">FLOW_ID</parameter>
</parameter>
</parameter>
</parameter>
ExcludeFK Sample
May 3, 2016
<parameter type="Map">
<parameter name="Type" type="String">ExcludeFK</parameter>
<parameter name="RemoteTable" type="String">BPM_T_FLOWS</parameter>
<parameter name="Present" type="Boolean">False</parameter>
<parameter name="FKFields" type="Array">
<parameter type="Map">
<parameter name="LocalName" type="String">BPM_FLOW_ID</parameter>
<parameter name="RemoteName" type="String">FLOW_ID</parameter>
</parameter>
</parameter>
</parameter>
| Page 87
FILTERS
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Samples
May 3, 2016
| Page 88
TUTORIAL
Export the customized tables from RAID and CM with some filters:
1. Export to the folder /home/demo/export/FILTER all the data from the schema ADM with
the follow filters
2. Sequence (AF_T_NUMERIC_SEQUENCE ), must not begin with a SEQ_RV (not like
SEQ_RV%)
3. Include all records from BCM_T_ENT and all its foreign keys to BCM_T_ATT
4. Exclude all the records on AF_T_EVENT
5. Copy the complete folder DAT to your local machine.
May 3, 2016
| Page 89
May 3, 2016
Replace Tool
| Page 90
REPLACE TOOL
WeDo Technologies 2015 strictly confidential information. All rights reserved.
The next set of slides will describe the replacement tool bundled with the product that can be
used to update selected tokens in database entries, configuration files, export files, etc.
The tool requires two files for execution:
A definition
file
A configuration
file
The definition file template is parsed and placeholders are replaced by the actual values. The
replacement actions are then executed.
May 3, 2016
| Page 91
REPLACE TOOL
Usage:
Invocation:
<PRODUCT BASE DIR>/bin/replace-tool
--definition=<def-file.template>
[ --instance-name=<instance name> ]
[ --config-file=<config-file> ]
[ --props=<properties-file> ]
Sample
May 3, 2016
usage:
bin/replace-tool
--definition=software/components/raid/config/replace/update-export.xml.template
--instance-name=RAID
| Page 92
REPLACE TOOL
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Options
-h,--help
Show help.
-d,--definition
-c,--config-file
Uses a configuration file to specify the values to replace. When used with -n
option, the configuration values are merged.
Note: This is not the same config file used to install the server, this is a new
file to replace values.
Use the instance configuration values to specify the values to replace.
-n,--instance-name
-p,--props
May 3, 2016
| Page 93
Description
Uses a property file to specify the values to replace. When used with -n or -c
options,
the
configuration
values
are
merged.
(See
http://en.wikipedia.org/wiki/.properties)
Mandatory
REPLACE TOOL
WeDo Technologies 2015 strictly confidential information. All rights reserved.
The replacement actions to perform are configured in the definition file using XML syntax.
The top-level element must be domains, containing one or more domain elements, as in the
following example:
May 3, 2016
<?xml version="1.0"?>
<domains>
<domain class="..." ...>
<action class="..." .../>
<action class="..." ...>
...
</action>
...
</domain>
<domain class="..." ...>
...
</domain>
...
</domains>
| Page 94
REPLACE TOOL
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Note: The definition file is a template file that is processed to replace variable placeholders
and produce the final definition file. For this reason, some characters such as $ must be
properly escaped in order to reach the final replacement configuration. To escape this
character you need to add the underscore character following the $, e.g. $text must be
escaped as $_text
May 3, 2016
| Page 95
REPLACE TOOL
WeDo Technologies 2015 strictly confidential information. All rights reserved.
This domain type fetches and updates values from a column in a table. The records to update
can be restricted by filters.
This supports using the same set of replacement actions for more than one column (on the
same or different tables).
Sample configuration:
May 3, 2016
REPLACE TOOL
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Domain Types
Description
Class
Always wedo.ie.domains.Database.
Driver
url
Java
class
implementing
the
database
JDBC
driver.
Example:
oracle.jdbc.driver.OracleDriver
JDBC url for the database to connect to. Example: jdbc:oracle:thin:@[host]:[port]:[sid]
user
pwd
Database password
Mandatory
Apart from the attributes, this domain also requires one or more table child elements,
specifying which tables, columns and records to update.
The attributes for the table child element are:
Attribute
Description
Name
field
Method
Mandatory
Default is
Empty
May 3, 2016
| Page 97
REPLACE TOOL
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Domain Types
Finally, each table element can have one or more record elements, which define one or more
child field values for the restrictions (refer to the last example for the correct syntax). If there
arent anyrecordelements, all records are updated (or none if EXCLUDE_LIST is used).
Siblings of the table elements (child of the domain) can exit one or more action elements
describing the replacements to be applied.
May 3, 2016
| Page 98
REPLACE TOOL
WeDo Technologies 2015 strictly confidential information. All rights reserved.
This domain type fetches and updates the contents of text files in a directory. Multiple files can
be selected by supplying a wildcard file pattern.
Nested in the domain element are one or more action elements describing the replacements
to be applied.
Sample configuration:
<!-- Filesystem update example -->
<domain class="wedo.ie.domains.Filesystem" mask="BCM_*.xml" path=".">
<action class="..." .../>
...
</domain>
Attribute
Description
Always wedo.ie.domains.Filesystem
path
mask
encoding
May 3, 2016
| Page 99
Mandatory
Default is
Empty
REPLACE TOOL
WeDo Technologies 2015 strictly confidential information. All rights reserved.
This action replaces all occurrences of a chars sequence with a new value. The search
operation is case-sensitive.
Sample configuration:
<!-- StringReplace example -->
<action class="wedo.ie.actions.StringReplace" toReplace="FALSE" newChars="TRUE"
encrypt="false" />
May 3, 2016
Attributea
| Page 100
class
Description
Always wedo.ie.actions.StringReplace
toReplace
newChars
New value to replace every occurrence of the previous value (can be empty).
encrypt
If true, the content of newChars attribute are encrypted. This is useful when a
password is stored. If not present the default value is false.
Mandatory
REPLACE TOOL
WeDo Technologies 2015 strictly confidential information. All rights reserved.
String Set unconditionally sets the received contents to the configured fixed value.
This action should typically be applied when receiving specific contents, not to the full
contents of files or Xml Clobs. It is normally nested inside the XmlUpdate action (see below).
Sample configuration:
<!-- StringSet example -->
<action class="wedo.ie.actions.StringSet" value="RAID" encrypt="false" />
May 3, 2016
Attribute
| Page 101
Description
class
Always wedo.ie.actions.StringSet
value
encrypt
If true, the content of the value attribute is encrypted. This is useful when a
password is stored. If not present the default value is false.
Mandatory
REPLACE TOOL
WeDo Technologies 2015 strictly confidential information. All rights reserved.
May 3, 2016
Attribute
class
toReplace
newChars
| Page 102
Description
Always wedo.ie.actions.RegExpReplace
Mandatory
REPLACE TOOL
WeDo Technologies 2015 strictly confidential information. All rights reserved.
The regular expression uses Java-like syntax. The following table shows several examples for
typical replacement scenarios:
toReplace
Description
Original value
Replaced value
DAT
START_DATE
DaT
DAT
Data
START_DataE
DaT
Data
START_DATE
START_DATE
DaT
Data
# comment #
// comment
# multi-line
# multi-line
comment #
comment #
# multi-line
// multi-line
comment #
comment
A=1
A := 1
C>5
C>5
B=2
B := 2
DAT
Data
^DAT$
Data
Replaces the full string DAT by Data. Does not replace partial contents,
the full original value must be DAT.
(?i)DAT
^#(.*)#$
(?s)^#(.*)#$
(?m)^(.*)=(.*)$
May 3, 2016
newChars
| Page 103
Data
//$1
//$1
$1 := $2
Replaces contents starting and ending with # with the same contents
prefixed with // (capturing group 1).
REPLACE TOOL
WeDo Technologies 2015 strictly confidential information. All rights reserved.
This action parses the received contents as XML, selects elements using XPath notation and
applies child actions to the elements text contents.
Sample configuration:
<!-- XmlUpdate example -->
<action class="wedo.ie.actions.XmlUpdate">
<elementtext xpath="/flow/flowsharedarea/parameter[@name='ContextType']">
<action .../>
...
</elementtext>
<deletenode xpath="/flow/flowsharedarea/parameter[@name='ContextType']">
<attributetext xpath="/flow/flowsharedarea/parameter/@name">
<action .../>
...
</attributetext>
...
</action>
| Page 104
Description
Always wedo.ie.actions.XmlUpdate
Mandatory
REPLACE TOOL
WeDo Technologies 2015 strictly confidential information. All rights reserved.
The following table describes the nested actions that can be used in the XmlUpdate action.
May 3, 2016
Sub Actions
Description
Attributes
Name
elementtext
deletenode
attributetext
| Page 105
Mandatory
Description
The XPath
expression for
selecting the
elements to
update
This action selects the text content inside of each element that
matches the XPath expression. The text can be manipulated by
one or more nested action elements.
Deletes all the nodes that match the XPath expression.a
xpath
This action selects the text content of each attribute that
matches the XPath expression. The text can be manipulated by
one or more nested action elements.
REPLACE TOOL
WeDo Technologies 2015 strictly confidential information. All rights reserved.
May 3, 2016
XPath expression
/flow/flowsharedarea/parameter[@name='ContextType']
Description
Selects a flow root element, then any flowsharedarea
children, and finally parameter children containing the
attribute name with the value ContextType.
Replacement actions are performed on the text
contents of the selected parameter elements.
/flow/tasklist/*[(name()='task'
or
name()='starttask'
or Performs replaces on the contents of
name()='endtask') and @taskkey='TaskSql']/parameter[@name='user']
parameter elements with the name attribute
| Page 106
REPLACE TOOL
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Sample
In the installation you can find some sample definition files that can
help you to produce your own definition file. These files are located
under the following directory:
<Product Base Dir>/software/components/ie/config/samples/replace
May 3, 2016
| Page 107
TUTORIAL
May 3, 2016
| Page 108
May 3, 2016
Import Tool
| Page 109
IMPORT TOOL
The import tool allows you to upload all data stored in an export. This tool reads all data from
the export directory and uploads it into the database.
By default, the import tool uses insertions to perform this task but updates can be used if you
enable an option in the tool.
This tool guarantees that all data is imported correctly, or none is imported if any error
occurred during the import process.
This mechanism ensures that no partial information is uploaded and leaves the server
database inconsistent.
May 3, 2016
| Page 110
IMPORT TOOL
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Usage:
This example imports all configurations from an export. The update-data option can be
used to allow updates when the records already exist, and to insert new ones.
Invocation:
<PRODUCT BASE DIR>/bin/import
--import-dir=<export-directory>
--instance-name=<instance name>
[ --update-data ]
Sample
May 3, 2016
usage:
bin/import
--import-dir=exports/BC
--instance-name=BC
--update-data
| Page 111
IMPORT TOOL
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Show help.
-d,--import-dir
-c,--driver-class
-r,--database-url
Database
JDBC
Url,
including
password.
(Ex:
jdbc:oracle:thin:[user]/[pass]@[host]:[port]:[sid]). This option should be used when
connecting to a custom database.
Instance name to access database configurations. This option is used in conjunction with
s option. If this option is omitted, by default App value is used.
-i,--instance-name
-s,--data-source
Mandatory
-u,--update-data
Data source name used to establish the database connection. This option can
only be used in conjunction with i option.
Update existing records and only insert new ones.
-q,--quiet
May 3, 2016
| Page 112
IMPORT TOOL
WeDo Technologies 2015 strictly confidential information. All rights reserved.
TUTORIAL
/home/demo/export/TUTORIAL2
2. Prepare a new environment
3. Transfer the extracted data to the new environment and import the data to the new
envirnoment.
May 3, 2016
| Page 113
AGENDA
WeDo Technologies 2015 strictly confidential information. All rights reserved.
AMS Export
AMS Import
AMS Manifest
Migration
May 3, 2016
Configurations
Database
File System
| Page 114
May 3, 2016
5. Backup and
Restore
| Page 115
Configurations
Export
Import
May 3, 2016
| Page 116
a full export for the data schema on RAID DAT schema user
By default there are no files need to be copy or save on RAID, but dependes on the way the
process are created on RAID it would be necessary to save some files, set of files, or even
folders.
May 3, 2016
| Page 117
AGENDA
1. Standalone/Integrated command line tool
WeDo Technologies 2015 strictly confidential information. All rights reserved.
2. Web Scheduler
3. Assited Migration Service - Dev to Tst to Production
AMS Export
AMS Import
AMS Manifest
Migration
May 3, 2016
| Page 118
May 3, 2016
6. Upgrading
Process
| Page 119
UPGRADE PROCESS
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Overview
The following slides will shows all the necessary actions to execute in order to successfully
upgrade a server.
The
Create
a database backup for all instances created under the <RAID PRODUCT BASE
DIR> location.
Create
Remove
May 3, 2016
| Page 120
UPGRADE PROCESS
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Overview
Deploy
the new software version in the same location of the existing RAID location.
java jar <RAID package name>.jar u o <RAID PRODUCT BASE DIR>
If
any of the instances have add-ons installed, is necessary to upgrade all of them to the
version that is compatible with this RAID version.
To upgrade an add-on, is necessary to deploy its new software version using the following
command
<RAID PRODUCT BASE DIR>/bin/addon-software-update p <addon package name>.jar
An
Upgrade
all instances installed under the <RAID PRODUCT BASE DIR>. For each instance,
execute the following command:
May 3, 2016
| Page 121
UPGRADE PROCESS
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Overview
Upgrade
all instances installed under the <RAID PRODUCT BASE DIR>. For all instance,
the following command is needed to be executed
<RAID PRODUCT BASE DIR>/bin/update-instance n <instance name> -l <license file>
Start
Check
May 3, 2016
if the server is working properly. If so, all patches and backups can be deleted
| Page 122
UPGRADE PROCESS
WeDo Technologies 2015 strictly confidential information. All rights reserved.
Final Note
In
some situations to upgrade the server is necessary to use the tools that you have learn in
this training chapter
Assiste Migration Service
Export Import Tool
Upgrade
This way, you need to use the tools at your disposal properly.
May 3, 2016
| Page 123
AGENDA
1. Standalone/Integrated command line tool
WeDo Technologies 2015 strictly confidential information. All rights reserved.
2. Web Scheduler
3. Assited Migration Service - Dev to Tst to Production
AMS Export
AMS Import
AMS Manifest
Migration
May 3, 2016
| Page 124
May 3, 2016
Q&A
| Page 125
May 3, 2016
| Page 126