Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info

In the Offline perspective of Fiorano eStudio, deploying just brings the new service to the Micro Service Palette and the Microservice Repository.

Anchor
Command Prompt
Command Prompt
Command Prompt

To deploy the developed component, execute  perform any one of the following ways.

Interactive mode

Open command prompt from the command line in the component directory.new component directory and follow the below steps:

  1. Execute the following command:

    Code Block
    titleWindows
    register.bat
    Code Block
    titleLinux
    register.sh
  2. Type "1" and press Enter.

    Image Added
    Figure 1: Interactive deployment mode options

    Tip

    Other options are meant to perform the following:

    • 2 - Reregister
    • 3 - Deploy to eStudio in the Offline perspective
    • 4 - Unregister
    • Exit - Exit from the interactive mode.

Non-interactive mode

Open command prompt from the new component directory and execute the following command:

Code Block
ant register 

A success message appears after registering the required elements required for the build deployment.

Image Added
Figure 2: Build success message

Note

In case it throws any error related to the library files, please execute the following command:

Code Block
ant -lib <Fiorao_HomePath>\antscripts\lib register

Image Added
Figure 3: deploying using ant -lib command

The details of the enterprise server on which the component should be deployed are specified in build.properties file


Figure 14: Build.properties file content showing details of enterprise server on which component has to be deployed

...

Note

Before starting with the below steps, ensure that you have imported the service(s)/project(s) to the workspace.

Prerequisite

To set Ant Home, perform the following actions in eStudio:

  1. Navigate through Window > Preferences > Ant > Runtime and click the Ant Home button.
  2. Click antscripts folder present in the Fiorano_Home directory

 Image Added
Figure 5: Setting Ant Home

Note

Failing to perform this activity leads to Build failure; the error description gets displayed in the Console view that appears.

Image Added
Figure 6: Error in Console view in case Ant home is not set before running the build

 

Steps

To deploy the developed component, perform the following actions in eStudio.:

  1. Open Ant view using any one of the following ways:
    1. Navigating through Window > Show View > Other > Ant > Ant
    2. Click Show View as a Fast View  icon and navigate through Other > Ant > Ant.
  2. In the Ant view, right-click and select Add Buildfiles option.

     
    Figure 27: Adding Build files from Ant view
     
  3. In the Buildfile Selection pop-up, select build.xml node and click OK to add the Build XML files to the Ant view


    Figure 38: Selecting Build.xml node
     
  4. 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)
      1. Double-click deployToStudio node
      2. Click deployToStudio node and click the Run the Selected Target  icon.
    • Online Event Process Development Perspective (perform any one action below)
      1. Double-click register node
      2. Click register node and click the Run the Selected Target  icon.
         

    Figure 49: 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 510: Messages appearing in the Console view

...

Note

Reload the services by clicking the Refresh button present in the Micro Service Palette to see the newly added services. New services appear in the Micro Service Palette as well as Micro Service Repository.


Figure 611: New microservice appearing under the Micro Service 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.

...

Code Block
titleReregister
ant reregister
Info

The interactive mode as explained in the Command Prompt section above can also be used:

  • Enter the numebr "4" to unregister
  • Enter the number "2" to reregister

eStudio

Unregister

To unregister a custom component that is already registered with the enterprise server, perform any one of the following in Console view:

...

    1. Double-click register node
    2. Click register node and click the Run the Selected Target  icon.


Figure 712: Unregistering/Reregistering a deployed component

Adaptavist ThemeBuilder EngineAtlassian Confluence