Open topic with navigation

TIBCO® Enterprise Administrator 2.4.2

# Solution

A solution defines a set of managed objects that can be managed by agents other than the one defining the solution.

A solution can contain objects defined by the agent and can have links to other objects. A Solution must be registered before an agent is started.

For example,

    final TeaSolution solution = new TeaSolution("sampleSolution", "This is my sample solution");
            // Add tomcat reference
            final TeaObjectHardLink hl = new TeaObjectHardLink() {

            @Override
            public String getName() {
            return "Tomcat";
            }

            @Override
            public String getDescription() {
            return "Link to tomcat";
            }

            @Override
            public String getObjectID() {
            return "Tomcat:::server:t1";
            }
            };
            solution.addMembers(devNode, platformapp, hl);
            server.registerSolution(solution);
            server.start();

Customizing the Solution

The setCustomization method takes a String parameter to customize the UI for the solution. The following snippet shows an example of customizing the solution:

    solution.setCustomization("{ " +
    "\"solutionName\": \"SampleProductAgent Solution\"," +
    "\"title\": \"SampleProductAgent\"," +
    "\"subtitle\": \"SampleSolution\"," +
    "\"columns\": [ " +
    "{ \"label\": \"name\", \"expr\": \"name\", \"entityLink\": true }," +
    "{ \"label\": \"agent name\", \"expr\": \"agentId\"}," +
    "{ \"label\": \"type\", \"expr\": \"type.name\" }," +
    "{ \"label\": \"description\", \"expr\": \"desc\" }," +
    "{ \"label\": \"status\", \"expr\": \"status.state\" }" +
    "]" +
    "}");

The String passed to the method can customize the following:

- Solution Name
- Title
- Subtitle
- Columns of the table

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO® Enterprise Administrator

Copyright © 1996-2025. Cloud Software Group, Inc. All Rights Reserved.