After the creation of Microservice component following actions can be taken:
Post Creation Action | Description |
---|---|
None | Generate the source code and do nothing else |
Build | Generate the source and build the sources |
Build and Deploy | Generate the source, build the source and register with Fiorano Enterprise Server |
Building the Microservice
To build the component created, execute the command ant
in the component directory. This compiles the source files, builds the required archives and creates a file export.zip containing all the files /details required for the components. export.zip can be imported using FSSM or Studio, for details regarding importing of a business component refer the Deploying in Enterprise Server section.
Deploying the Microservice
Deploying the component means registering the component on a Fiorano Enterprise Server. Any component created before it can be used in developing event process(s) has to be registered with the Fiorano Enterprise Server.
Deployment can be done in the command prompt or eStudio as explained in the following sections.
Command Prompt
To deploy the developed component, perform any one of the following ways.
Interactive mode
Open command prompt from the new component directory and follow the below steps:
Execute the following command:
WindowsLinuxType "1" and press Enter.
Figure 1: Interactive deployment mode options
Non-interactive mode
Open command prompt from the new component directory and execute the following command:
A success message appears after registering the required elements required for the build deployment.
Figure 2: Build success message
The details of the enterprise server on which the component should be deployed are specified in build.properties file
Figure 4: Build.properties file content showing details of enterprise server on which component has to be deployed
eStudio
Prerequisite
To set Ant Home, perform the following actions in eStudio:
- Navigate through Window > Preferences > Ant > Runtime and click the Ant Home button.
- Click antscripts folder present in the Fiorano_Home directory
Figure 5: Setting Ant Home
Steps
To deploy the developed component, perform the following actions:
- Open Ant view using any one of the following ways:
- Navigating through Window > Show View > Other > Ant > Ant
- Click Show View as a Fast View icon and navigate through Other > Ant > Ant.
- In the Ant view, right-click and select Add Buildfiles option.
Figure 7: Adding Build files from Ant view
- In the Buildfile Selection pop-up, select build.xml node and click OK to add the Build XML files to the Ant view
Figure 8: Selecting Build.xml node
- Expand the node with the new service name that appears and do the following as per the perspective:
- Offline Event Process Development Perspective (perform any one action below)
- Double-click deployToStudio node
- Click deployToStudio node and click the Run the Selected Target icon.
- Online Event Process Development Perspective (perform any one action below)
- Double-click register node
- Click register node and click the Run the Selected Target icon.
Figure 9: Deploying/Registering the new component
A console panel appears, displaying a series of messages to indicate generation of various files. The message saying "Build Successful" confirms the deployment of the service.
Figure 10: Messages appearing in the Console view
Viewing the Microservice
Check the presence of new microservice in eStudio under Microservice Repository and Micro Service Palette.
Figure 11: New microservice appearing under the Microservice Repository and Micro Service Palette
Unregister and Reregister
Command Prompt
Unregister
To unregister a custom component that is already registered with the enterprise server, execute the following command from the command line in the component directory.
Reregister
To redeploy a component that is already registered with enterprise server in case any changes are made to the component, execute the following command from the command line in the component directory.
eStudio
Unregister
To unregister a custom component that is already registered with the enterprise server, perform any one of the following in Console view:
- Double-click unregister node
- Click unregister node and click the Run the Selected Target icon.
Reregister
To redeploy a component that is already registered with enterprise server in case any changes are made to the component, perform any one of the following in Console view:
- Double-click register node
- Click register node and click the Run the Selected Target icon.
Figure 12: Unregistering/Reregistering a deployed component