X4 Produktdokumentation

Deployments

This adapter lists the processes and resources deployed on the server in the X4 repository. The listing also includes processes deployed using X4 Apps.

Properties


Operation

Operation performed by the adapter

Possible values:

  • List: Lists all available processes and resources in an XML document. 

  • Get Image: Returns an image of the process workflow. 

  • Get Image Metadata: Returns the metadata of an image of the process workflow. 

  • Reload Repository:  Returns a list of all projects and repository types for each element.  

  • Reload Project: Returns the project and the type of the repository for each element.

Parameters

Adapter

Main class of the adapter (do not change!)

Possible value:  de.softproject.x4.adapter.deployed.app.DeployedAppAdapter (Standard)

repository

Repository name 

project

Project name

processPath

Path and name of the process

Status values

1

The operation was executed successfully.

-1

The operation failed due to a technical error.


The documentation of the ReST interface can be found at http://localhost:8080/X4/X4Api/.

Examples

Output List Operation

The adapter generates an XML document as output.

XML
<DeployedAppResponse>
    <Repository name="1">
        <Project name="MyProject" type="ESB" uuid="695245fa-3b07-4e0e-b9d0-b53fdcb45e51">
            <Resource path="Adapters\MyAdapter.fa"/>
            <Resource path="pom.xml"/>
            <Resource path="Processes\MyProcess.wrf"/>
            <Resource path="Resources"/>
            <Resource path="TemporaryFiles"/>
            <Resource path="Transformations"/>
            <Resource path="MyProject.wsinc"/>
        </Project>
    </Repository>
</DeployedAppResponse>

Output Get Image Metadata Operation

<ProcessElements>
    <ProcessElement id="0" name="Start" x="17" y="119" height="32" width="32"/>
    <ProcessElement id="1" name="Stop" x="476" y="119" height="32" width="32"/>
    <ProcessElement id="2" name="Processes_Deployed.fa" x="204" y="119" height="32" width="32" path="ESBProject_1/Processes/Deployment/ProcessImage-14057/process_processImageWRF.wrf/Processes_Deployed.fa"/>
</ProcessElements>

Output Reload Project Operation

<GetProjectResponse>
    <Project name="AMQP_Project" repository="1" isLibrary="false" projectType="ESB" projectVersion="7.2.0-SNAPSHOT" projectId="fd1a244b-245b-4c81-adb1-22499e57aa5a">
        <Properties>
            <Properties>
                <ProjectProperty>
                    <Key>disableWebService</Key>
                    <Value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:boolean">false</Value>
                </ProjectProperty>
            </Properties>
        </Properties>
        <RepositoryPaths>
            <RepositoryPath>
                <repository>1</repository>
                <project>AMQP_Project</project>
                <projectSegments>Adapters</projectSegments>
                <projectSegments>AMQP_Publisher_DE.fa</projectSegments>
                <lastProjectSegmentIndex>1</lastProjectSegmentIndex>
                <isDirectory>false</isDirectory>
                <repositoryMembership>INCLUDED</repositoryMembership>
            </RepositoryPath>
        </RepositoryPaths>
    </Project>
</GetProjectResponse>



Output Reload Repository Operation

<GetProjectsResponse>
    <Project name="ESB_XVIER-14717_DeployedProcesses_API" repository="5" isLibrary="false" projectType="ESB" projectVersion="7.2.0-SNAPSHOT" projectId="e52c9786-f51e-4404-9642-c7727715d418">
        <Properties>
            <Properties>
                <ProjectProperty>
                    <Key>disableWebService</Key>
                    <Value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:boolean">false</Value>
                </ProjectProperty>
            </Properties>
        </Properties>
        <RepositoryPaths>
            <RepositoryPath>
                <repository>5</repository>
                <project>ESB_XVIER-14717_DeployedProcesses_API</project>
                <projectSegments>Adapters</projectSegments>
                <lastProjectSegmentIndex>0</lastProjectSegmentIndex>
                <isDirectory>true</isDirectory>
                <repositoryMembership>INCLUDED</repositoryMembership>
            </RepositoryPath>
            <RepositoryPath>
                <repository>5</repository>
                <project>ESB_XVIER-14717_DeployedProcesses_API</project>
                <projectSegments>ESB_XVIER-14717_DeployedProcesses_API.wsinc</projectSegments>
                <lastProjectSegmentIndex>0</lastProjectSegmentIndex>
                <isDirectory>false</isDirectory>
                <repositoryMembership>INCLUDED</repositoryMembership>
            </RepositoryPath>
        </RepositoryPaths>
    </Project>
    <Project name="ESBProject_1" repository="5" isLibrary="false" projectType="ESB" projectVersion="7.2.0-SNAPSHOT" projectId="6180c7b1-b858-4b7e-9f5f-b11d8768ed68">
        <Properties>
            <Properties>
                <ProjectProperty>
                    <Key>disableWebService</Key>
                    <Value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:boolean">false</Value>
                </ProjectProperty>
            </Properties>
        </Properties>
        <RepositoryPaths>
            <RepositoryPath>
                <repository>5</repository>
                <project>ESBProject_1</project>
                <projectSegments>Adapters</projectSegments>
                <lastProjectSegmentIndex>0</lastProjectSegmentIndex>
                <isDirectory>true</isDirectory>
                <repositoryMembership>INCLUDED</repositoryMembership>
            </RepositoryPath>
            <RepositoryPath>
                <repository>5</repository>
                <project>ESBProject_1</project>
                <projectSegments>ESBProject_1.wsinc</projectSegments>
                <lastProjectSegmentIndex>0</lastProjectSegmentIndex>
                <isDirectory>false</isDirectory>
                <repositoryMembership>INCLUDED</repositoryMembership>
            </RepositoryPath>
        </RepositoryPaths>
    </Project>
</GetProjectsResponse>