The implementation of a Fabric project can be divided into 2 on-going steps:
A deployment includes the definition of Fabric objects like the LU Schema, LU Tables, Interfaces, Globals, Project functions, Web Services, Broadway flows and Graphit and it is required whenever these objects are created or modified.
The deployment of a Fabric project is performed on the following levels:
Deployment of Logical Units, each LU is deployed separately.
Deployment of Broadway flows as part of the LU to which they belong.
Deployment of References objects, when they exist in a project. All Reference (common) tables are deployed together.
Deployment of Web Services, when they exist in the project. The following deployment options are available:
Deployment of all Web Services.
Deployment of selected Web Services category files.
Deployment of selected Web Services.
Deployment of Graphit, when it exists in the project. The following deployment options are available:
Deployment of Environments.
Deployment can be performed from either one of the below two locations:
When a Fabric object is deployed to the server, the deployment artifacts are created in the /storage/lu directory of the Fabric server – one ludb.jar for each deployment. A folder is created under /storage/lu for each object’s first deployment. For example, when the CRM LU is deployed for the first time, the CRM folder is created under /storage/lu. The /storage/lu/CRM will include the folder named as the deployment time and will include the ludb.jar.
Note that Shared Objects are not independent objects in a project and therefore cannot be deployed as stand-alone items. You must re-deploy the object using the updated Shared Object to make the change in a shared object available in the Fabric server. For example, when an interface is updated, all LU using this interface should be re-deployed to make this change effective.
Soft Deploy is Fabric's ability to exclude automatic processes from the LU deployment. Soft Deploy is mostly useful for implementors that work in a development environment and that frequently change their code, such as Broadway flows or Java functions.
You can use the Soft Deploy option to deploy changes without triggering automatic processes such as:
Moreover, when the Soft Deploy is used, the deploy.flow is not running.
To activate the Soft Deploy when deploying from the Fabric Studio, mark the Soft Deploy checkbox in the User Preferences > Server Configuration window.
To activate the Soft Deploy during the Offline Deploy, set the SOFT_DEPLOY optional parameter to TRUE.
To activate Soft Deploy, right-click on a Logical Unit name, and select Soft Deploy.
Only one project can be deployed to each Fabric cluster. If a project has been deployed and an attempt to deploy a different project to the same cluster is made, an error message is displayed.
To check the project’s deployment in the Fabric server, use the SET command from the Fabric console (click this icon from next to Fabric in the Debug Panel to open the console):
To check the project’s deployment in the Fabric server, use the SET command from the Fabric terminal (Choose Fabric -> Open Fabric Terminal)
set;
This command displays the currently deployed project name, as well as the values of various project parameters.
Click for more information about Fabric Basic Commands.
You can check which objects are deployed in the Fabric server by using the Fabric LIST command.
list LU_TYPES/LUT, provides a list of LU Types deployed to the Fabric server and can display an LU's storage type. This command can be invoked for either all deployed LU Types or for a specific one.
list WS, provides a list of all Web Service methods deployed to the Fabric server.
list ENVIRONMENTS/ENVS, provides a list of environments deployed to the Fabric server.
list BF/BROADWAY_FLOWS, lists all Broadway flows of all LU Types with their inputs and outputs deployed to the server:
list INSTANCE_GROUPS/IGS, lists all instance groups of all LU Types deployed to the server.
list DB_SOURCES, lists all the DB interfaces.
list INTERFACES, lists all the interfaces.
list lut;
list lu_types;
list lut storage=y;
list ws;
list ENVIRONMENTS;
list ENVS;
list BF;
list BROADWAY_FLOWS;
list IGS;
list INSTANCE_GROUPS;
list DB_SOURCES;
list INTERFACES;
Examples:
fabric>list lut storage=y;
|LU_NAME |STORAGE|
+---------------+-------+
|SummaryExercise|Default|
|Customer |Default|
|ORDERS |Default|
|CRM |Default|
Project deployment is reflected in Cassandra as follows:
After the project is deployed to the server, there may be a need to clarify which code has been deployed in a specific environment. For example, if there are many code changes in the project and you need to verify whether a specific change has already been deployed to the server. For this purpose, Fabric supports the creation of a zip file for a selected LU name, enabling the implementor to download the code deployed in the environment and to check it.
http://[host]:3213/lut?lutName=[luname]&token=[token]
http://[host]:3213/lut?lutName=k2_ws&token=[token]
http://[host]:3213/lut?lutName=k2_ref&token=[token]
The outcome of this command is that ludbXMLs.zip is downloaded to your local machine and can be opened in the Studio.
The implementation of a Fabric project can be divided into 2 on-going steps:
A deployment includes the definition of Fabric objects like the LU Schema, LU Tables, Interfaces, Globals, Project functions, Web Services, Broadway flows and Graphit and it is required whenever these objects are created or modified.
The deployment of a Fabric project is performed on the following levels:
Deployment of Logical Units, each LU is deployed separately.
Deployment of Broadway flows as part of the LU to which they belong.
Deployment of References objects, when they exist in a project. All Reference (common) tables are deployed together.
Deployment of Web Services, when they exist in the project. The following deployment options are available:
Deployment of all Web Services.
Deployment of selected Web Services category files.
Deployment of selected Web Services.
Deployment of Graphit, when it exists in the project. The following deployment options are available:
Deployment of Environments.
Deployment can be performed from either one of the below two locations:
When a Fabric object is deployed to the server, the deployment artifacts are created in the /storage/lu directory of the Fabric server – one ludb.jar for each deployment. A folder is created under /storage/lu for each object’s first deployment. For example, when the CRM LU is deployed for the first time, the CRM folder is created under /storage/lu. The /storage/lu/CRM will include the folder named as the deployment time and will include the ludb.jar.
Note that Shared Objects are not independent objects in a project and therefore cannot be deployed as stand-alone items. You must re-deploy the object using the updated Shared Object to make the change in a shared object available in the Fabric server. For example, when an interface is updated, all LU using this interface should be re-deployed to make this change effective.
Soft Deploy is Fabric's ability to exclude automatic processes from the LU deployment. Soft Deploy is mostly useful for implementors that work in a development environment and that frequently change their code, such as Broadway flows or Java functions.
You can use the Soft Deploy option to deploy changes without triggering automatic processes such as:
Moreover, when the Soft Deploy is used, the deploy.flow is not running.
To activate the Soft Deploy when deploying from the Fabric Studio, mark the Soft Deploy checkbox in the User Preferences > Server Configuration window.
To activate the Soft Deploy during the Offline Deploy, set the SOFT_DEPLOY optional parameter to TRUE.
To activate Soft Deploy, right-click on a Logical Unit name, and select Soft Deploy.
Only one project can be deployed to each Fabric cluster. If a project has been deployed and an attempt to deploy a different project to the same cluster is made, an error message is displayed.
To check the project’s deployment in the Fabric server, use the SET command from the Fabric console (click this icon from next to Fabric in the Debug Panel to open the console):
To check the project’s deployment in the Fabric server, use the SET command from the Fabric terminal (Choose Fabric -> Open Fabric Terminal)
set;
This command displays the currently deployed project name, as well as the values of various project parameters.
Click for more information about Fabric Basic Commands.
You can check which objects are deployed in the Fabric server by using the Fabric LIST command.
list LU_TYPES/LUT, provides a list of LU Types deployed to the Fabric server and can display an LU's storage type. This command can be invoked for either all deployed LU Types or for a specific one.
list WS, provides a list of all Web Service methods deployed to the Fabric server.
list ENVIRONMENTS/ENVS, provides a list of environments deployed to the Fabric server.
list BF/BROADWAY_FLOWS, lists all Broadway flows of all LU Types with their inputs and outputs deployed to the server:
list INSTANCE_GROUPS/IGS, lists all instance groups of all LU Types deployed to the server.
list DB_SOURCES, lists all the DB interfaces.
list INTERFACES, lists all the interfaces.
list lut;
list lu_types;
list lut storage=y;
list ws;
list ENVIRONMENTS;
list ENVS;
list BF;
list BROADWAY_FLOWS;
list IGS;
list INSTANCE_GROUPS;
list DB_SOURCES;
list INTERFACES;
Examples:
fabric>list lut storage=y;
|LU_NAME |STORAGE|
+---------------+-------+
|SummaryExercise|Default|
|Customer |Default|
|ORDERS |Default|
|CRM |Default|
Project deployment is reflected in Cassandra as follows:
After the project is deployed to the server, there may be a need to clarify which code has been deployed in a specific environment. For example, if there are many code changes in the project and you need to verify whether a specific change has already been deployed to the server. For this purpose, Fabric supports the creation of a zip file for a selected LU name, enabling the implementor to download the code deployed in the environment and to check it.
http://[host]:3213/lut?lutName=[luname]&token=[token]
http://[host]:3213/lut?lutName=k2_ws&token=[token]
http://[host]:3213/lut?lutName=k2_ref&token=[token]
The outcome of this command is that ludbXMLs.zip is downloaded to your local machine and can be opened in the Studio.