BBjspCommandConfig::setPipelineName (Deprecated)

The BBJSP system is deprecated. For new development, use BBxServlet.

Description

In BBj 17.0 and higher, this method sets the name of the pipeline to execute.

Syntax

Return Value

Method

void

setPipelineName(string pipeline)

Parameters

Variable

Description

pipeline

the name of the pipeline

Return Value

None.

Remarks

a pipeline can be executed after the execution of the BBjspCommand.

Example

declare BBjAPI api!
declare BBjAdmin admin!
declare BBjJettyServerConfiguration config!
declare BBjJettyContextConfiguration context!
declare BBjspCommandConfig commandCfg!

api! = BBJAPI()
admin! = api!.getAdmin("admin","admin123")
config! = admin!.getJettyServerConfig()
context! = config!.getRootContextInfo()

vect! = context!.getCommandConfigs()

if (vect!.size()) then
    for i = 0 to vext!.size()-1
        commandCfg! = cast(BBjspCommandConfig,vect!.get(i-1))
        if (commandCfg!.getClassName() = "Foo") then
            commandCfg!.setPipelineName("PIPELINE_FOO")
        endif
    next i
endif
config!.saveConfig()

See Also

BBjspCommandConfig