このコンテンツは選択した言語では利用できません。
Chapter 8. Managing integrations
The following topics provide information to help you manage your integrations:
- Section 8.1, “Overview of managing integrations”
- Section 8.2, “About integration lifecycle handling”
- Section 8.3, “Putting integrations into and out of service”
- Section 8.4, “Monitoring integrations”
- Section 8.5, “Testing integrations”
- Section 8.6, “Updating integrations”
- Section 8.7, “Deleting integrations”
8.1. Overview of managing integrations
Each Fuse Online environment is hosted on OpenShift Online or OpenShift Container Platform (OCP). A common set up is to have a Fuse Online development environment, a Fuse Online test environment, and a Fuse Online deployment environment.
To facilitate this, Fuse Online provides the ability to export an integration from one Fuse Online environment and then import that integration into another Fuse Online environment.
The information and procedures for managing integrations are the same in each kind of Fuse Online environment, unless specifically noted.
8.2. About integration lifecycle handling
After you create and publish an integration, you might want to update what the integration does. You can edit a draft of the published integration and then replace the running version with the updated version. To facilitate this, for each integration, Fuse Online maintains multiple versions as well as each version’s state. The following topics provide an understanding of the behavior to help you manage your integrations.
8.2.1. Description of integration versions
In each Fuse Online environment, each integration can have multiple versions. Support for multiple integration versions has several benefits:
- If you publish a version that does not work correctly, then you can return to running a correct version of the integration. To do that, you stop the incorrect version and start a version that runs the way you want it to.
- As requirements or tools change, you can incrementally update an integration. You do not need to create a new integration.
Fuse Online assigns a new version number each time it starts running a new version of an integration. For example, suppose you publish the Twitter to Salesforce sample integration. After it has been running, you update the integration to use a different account to connect to Twitter. You then publish the updated integration. Fuse Online stops the running version of integration, and publishes the updated version of the integration with an incremented version number.
The initial integration that was running is version 1. The updated integration that is now running is version 2. If you edit version 2, for example to use a different account to connect to Salesforce, and you publish that version then it becomes version 3 of the integration.
See also: Section 8.3.1, “Publishing integrations” and Section 8.3.4, “Restarting older integration versions”.
8.2.2. Description of integration states
Fuse Online can maintain multiple versions of the same integration. The benefit of this is that you can edit an integration to change its behavior. You do not need to create a new integration when something changes.
There can be exactly one draft version of an integration. Fuse Online has a definition for the draft version of an integration but it has never run this version of the integration. When you edit an integration, you are updating the draft version of the integration.
In Fuse Online, you can see a list of the versions of an integration in the integration’s summary page. To view this page, in the left navigation panel, click Integrations and then click the entry for the integration whose versions you want to see. In the list of versions, each entry indicates the state of that version, which is one of the following:
State | Description |
Running | A Running version is executing; it is in service. Only one version of an integration can be running. That is, only one version at a time can be in the Running state. |
Stopped | A Stopped version is not running. The draft version of an integration is in the Stopped state. Each integration that was running at one time and then stopped is in the Stopped state. If no version of this integration is in the Running state, then you can start a version that is stopped. |
Pending | A pending version is in transition. Fuse Online is in the process of either starting this version of the integration or stopping this version of the integration, but the integration is not yet running or stopped. |
Error | An integration version that is in the Error state encountered an OpenShift error while being started or while running. The error suspended start-up or execution. If this happens, try starting an earlier integration version that ran correctly. Alternatively, contact technical support for help. To do that, in any Fuse Online page, in the upper right, click the icon and select Support. |
8.3. Putting integrations into and out of service
After you create an integration, you can save it as a draft or start running it. The first time that you run an integration, Fuse Online assembles the needed resources, builds the integration runtime, deploys the OpenShift pod that will run the integration, and then starts executing the integration.
At any time, you can click a button to stop running the integration. When you want to start the integration again, Fuse Online already has what it needs so starting it takes less time than when you ran it for the first time.
The process of starting an integration for the first time is referred to as publishing the integration. The following topics provide details:
8.3.1. Publishing integrations
The first time that you run an integration you publish it. Publishing an integration builds and deploys the integration runtime. The integration starts running. After publishing an integration, you can stop it and restart it. Exactly one version of an integration can be running at one time.
To run an integration for the first time, publish it by doing one of the following:
- At the end of the procedure in which you create or edit the integration, in the upper right, click Publish.
Publish the draft version of an integration:
- In the left Fuse Online panel, click Integrations.
- In the list of integrations, click the entry for the integration that you want to publish.
- On the integration’s summary page, in the Details tab, to the right of the draft entry, click and select Publish.
Fuse Online displays the progress of the publication process, which has several stages:
- Assembling creates pod resources needed to build the integration.
- Building gets the integration ready to deploy.
- Deploying waits for deployment of the pod that will run the integration.
- Starting waits for the pod to start running the integration.
- Deployed indicates that the integration is running.
During start-up, you can click View Logs to display OpenShift logs that provide start-up information.
When publishing the integration is complete, the Running status appears next to the integration name. The pod is running the integration.
8.3.2. Stopping integrations
Each integration can have exactly one version that is running. A running version is in the Running state. To stop running an integration:
- In the left Fuse Online panel, click Integrations.
- In the list of integrations, identify the entry for the integration that you want to stop running. The entry shows that this integration is Running.
- At the far right of this integration’s entry, click and select Stop.
Fuse Online stops running the integration. Stopping and then Stopped appears in the integration’s entry in the list of integrations.
8.3.3. Starting integrations
The first time that you start an integration, the process is referred to as publishing the integration because Fuse Online has to build the integration runtime before it can run the integration. See Section 8.3.1, “Publishing integrations”.
If you stop running an integration and then you want to start it again, the steps are as follows:
- In the left navigation panel, click Integrations.
- In the list of integrations, to the right of the entry for the integration that you want to start, click and select Start.
Fuse Online displays Starting as the status of that integration version, and then Running when the integration is running again.
8.3.4. Restarting older integration versions
You might publish an integration that does not work the way you want it to. In this situation, you can stop the incorrect version and replace it with a version that you published previously and that runs correctly.
To republish an older integration version:
- In the left panel, click Integrations to display a list of the the integrations in this environment.
- Click the entry for the integration for which you want to publish an older version. Fuse Online displays a list of the versions of the integration.
- In the entry for the version that is running, at the far right, click and select Stop.
- Click OK to confirm that you want to stop running this version.
- Wait for Stopped to appear to the right of the integration name near the top of the page.
Optionally, before you publish the older version, you can update it:
- In the entry for the integration version that you want to update, at the far right, click and select Replace Draft.
- Update the integration as needed. For details, see Section 8.6, “Updating integrations”.
- When updates are complete, in the upper right, click Publish, and then click Publish to confirm. This takes the place of the next two steps.
- To publish the older version as is, in the entry for the integration version that you want to start running again, at the far right, click and select Start.
- Click Start to confirm that you want to start this version of the integration.
Fuse Online starts the integration, which takes a few minutes. When the integration is running, then Running version n appears to the right of the integration’s name.
8.3.5. Troubleshooting integration execution
If an integration stops working, check its logs and activity details. See Section 8.4.2, “Viewing integration log information” and Section 8.4.1, “Viewing integration history”.
For a connection to an application that uses OAuth, you might see an error message that indicates that the access token for the application has expired. Sometimes, you might get a less explicit 403 - Access denied
message. The information in the message depends on the application that the integration is connecting to. In this situation, try reconnecting to the application and then republishing the integration:
- In the left panel, click Integrations.
- In the list of integrations, click the entry for the integration that stopped running.
- In the integration’s summary page, in the visual integration flow, click the icon for the application that you want to reconnect to.
- In the connection’s details page, click Reconnect.
Respond to that application’s OAuth workflow prompts.
Fuse Online displays a message to indicate that its access to that application has been authorized. For some applications, this takes a few seconds but it can take longer for other applications.
- After reconnecting to the application, start the integration.
If reconnection is not successful, try this:
- Re-register Fuse Online as a client of the application. See Section 4.2, “Obtaining authorization to access applications”.
- Create a new connection.
Edit each integration that was using the old connection:
- Remove the old connection.
- Replace it with the new connection.
- Publish each updated integration.
8.3.6. Copying integrations to other environments
To run integrations across development, staging and production environments, you can export and import integrations. The environments can all be on a single OpenShift cluster, or they can be spread out across multiple OpenShift clusters. See the following topics:
8.3.6.1. About copying integrations
Each Fuse Online installation is an environment from which you can export an integration. Exporting an integration downloads a zip file that contains the information needed to recreate the integration in a different Fuse Online environment.
In an environment, each integration can have only one Draft version.
The result of importing an integration depends on:
- Whether the integration was previously imported
- Whether a connection that the integration uses was previously imported
Fuse Online uses an internal identifier for each integration and each connection to determine whether it already exists in the environment that it is being imported into. If you change the name of an integration or connection Fuse Online recognizes it as the same integration or connection, which just has a different name.
The following table describes the possible results of importing an integration:
In the importing environment: | What the import operation does: |
---|---|
The integration has not been previously imported. | Creates the integration. The integration is in the Draft state. |
The integration has been previously imported. | Fuse Online updates the integration. The updated integration is in the Draft state. If there was a Draft version of this integration, it is lost. |
The imported integration uses a connection that did not exist in the environment before the import operation. | Fuse Online creates a connection that has the same settings except for secrets. You must review each new connection. If a connection is not completely configured for its new environment then you must add the missing settings. For example, you might need to obtain secret settings by registering this installation of Fuse Online as a client of the application that this connection accesses. |
8.3.6.2. Exporting integrations
When Fuse Online exports an integration it downloads a zip file to your local Downloads
folder. This zip file contains the information needed to recreate the integration in a different Fuse Online environment.
To export an integration:
- In the left panel of Fuse Online, click Integrations.
- In the list of integrations, identify the entry for the integration that you want to export.
- At the right of the entry, click and select Export.
To import the integration into another Fuse Online environment, open that environment and import the exported zip file.
Exporting an integration is also a way to have a backup of the integration. However, Fuse Online maintains the versions of an integration so exporting an integration is not required for having a backup copy.
8.3.6.3. Importing integrations
In a Fuse Online environment, to import an integration from another Fuse Online environment, you must have used that other Fuse Online environment to export the integraion. Exporting an integration downloads the zip file that you upload to import the integration.
To import an integration:
- Open the Fuse Online environment that you want to import the integration into.
- In the left panel, click Integrations.
- In the upper right, click Import.
- Drag and drop one or more exported integration zip files, or navigate to a zip file that contains an exported integration and select it.
- After Fuse Online imports the file(s), click Done. Fuse Online displays information about imported integrations.
In the left panel, click Connections.
If an imported integration uses a connection that requires configuration, then there is a Configuration Required message at the bottom of the connection’s card.
For each connection that requires configuration:
- Click it to display its details.
- Enter or change connection details as needed. It is possible that every field on this page is correct and that only security configuration is required.
- If you updated any fields, click Save.
In the left panel, click Settings.
The Settings page displays entries for applications that use the OAuth protocol.
For each connection that requires configuration and that accesses an application that uses the OAuth protocol, register this installation of Fuse Online with the application. The steps vary for each application. See the appropriate topic:
- In the left panel, click Connections and confirm that there are no longer any connections that require configuration.
- In the left panel, click Integrations. In the list of integrations, imported integrations have a green triangle in the upper left corner of their entries.
- In the list of integrations, at the right of the entry for the integration that you imported, click and select Edit.
- In the upper right, click Save as Draft or, if you want to start running the imported integration, click Publish. Regardless of whether you save the integration as a draft or you publish the integration, Fuse Online updates the integration to use the updated connections.
8.4. Monitoring integrations
Fuse Online provides various ways for you to monitor the execution of your integrations. See:
8.4.1. Viewing integration history
To view a list of the versions of an integration:
- In the left panel, click Integrations to display a list of the integrations in your environment.
- Click the entry for the integration whose versions you want to see.
In the page that appears, the History section lists the versions of the integration. The icon identifies the current version, which is the most recently, successfully running version. For each version, you can also see the date on which it was last started.
To edit, start, or stop a particular version, click the to the right of the version’s entry. Select the operation you want to perform.
8.4.2. Viewing integration log information
Fuse Online provides log information for each integration version that it executes. To see this information:
- In the left panel, click Integrations.
- Click the entry for the integration for which you want to view log information.
- In the integration’s summary page, click the Activity tab.
- Optionally, enter date and/or keyword filters to limit the versions listed.
- Click the integration version for which you want to view log information.
For each integration step, Fuse Online provides:
- The date and time that the step was executed
- How long it took to execute the step
- Whether execution was successful
- The error message if execution was not successful
To log additional information between any two steps, you can add a log step to the integration. A log step provides information about each message it receives and can provide custom text that you specify. If you add a log step, then it appears as one of the integration’s steps when you expand the integration version that you want to view log information for. You view Fuse Online information for a log step in the same way that you view Fuse Online information for any other step.
To add a log step, see Section 5.3.4, “Adding a log step”.
8.4.3. Viewing metrics for a particular integration
To view integration metrics:
- In the left panel, click Integrations.
- Click the entry for the integration for which you want to view metrics.
- In the integration’s summary page, click Metrics.
Fuse Online provides the following metrics:
- Total Errors indicates the number of runtime errors that all executions of this integration encountered during the past 30 days.
- Last Processed displays the most recent date and time that this integration processed a message. The message might have been successfully processed or there might have been an error.
- Total Messages is the number of messages that all executions of this integration processed in the last 30 days. This includes message failures.
- Uptime indicates when this integration started running and how long it has been running without an error.
8.4.4. Viewing metrics for a Fuse Online environment
Metrics for your Fuse Online environment appear on the Fuse Online home page. To see them, click Home in the left panel. Fuse Online updates the following metrics every 5 seconds:
- The number of integrations that are defined in this environment as well as the number of integrations that are running, the number of integrations that are stopped, and the number of integrations that are pending. Fuse Online is either stopping or starting pending integrations. A red cross indicates any integrations that were running but that encountered an error that suspended execution.
- The number of connections that are defined in this environment.
- Total number of messages that have been processed by integrations in this environment in the last 30 days. This includes messages that were processed by integrations that might no longer be running or that might have been deleted from this environment.
- Uptime indicates how long there has been at least one integration that is running. The date and time when uptime started appears as well.
8.5. Testing integrations
After you create an integration and it is running correctly in a development environment, you might want to run it in a different environment to test it.
To test an integration in a different Fuse Online environment:
- See Section 8.3.6.1, “About copying integrations”.
- Export the integration from the development environment. See Section 8.3.6.2, “Exporting integrations”.
- Import the integration into the test environment. See Section 8.3.6.3, “Importing integrations”.
8.6. Updating integrations
After you create an integration, you might need to update it to add, edit or remove a step. To update an integration:
- In the left Fuse Online panel, click Integrations.
- In the list of integrations, click the entry for the integration that you want to update.
- On the integration’s summary page, in the upper right corner, click Edit Integration.
In the left panel, you can see that each step in the integration is represented by an icon that indicates whether it is a connection or a data operation between connections. Update the integration as needed:
- To add a step, in the left panel, hover over the plus sign that is in the location where you want to add it. Click Add a Connection or Add a Step.
- To delete a step, in the left panel, click to the right of the step that you want to delete.
- To change the configuration of a step, in the left panel, click the step that you want to update. In the configuration page, update the parameter settings as needed.
See also: Section 8.3.1, “Publishing integrations”.
8.7. Deleting integrations
To delete an integration:
- In the left Fuse Online panel, click Integrations.
- In the list of integrations, at the right of the entry for the integration that you want to delete, click and select Delete.
- In the popup, click OK to confirm that you want to delete the integration.
After you delete an integration, Fuse Online still has the history of that integration. If you import a version of the deleted integration, then Fuse Online associates the history of the deleted integration with the imported integration.