static void addDeployOperationStep ( final CompositeOperationBuilder builder , final DeploymentDescription deployment ) { final String name = deployment . getName ( ) ; final Set < String > serverGroups = deployment . getServerGroups ( ) ; // If the server groups are empty this is a standalone deployment if ( serverGroups . isEmpty ( ) ) { final ModelNode address = createAddress ( DEPLOYMENT , name ) ; builder . addStep ( createOperation ( DEPLOYMENT_DEPLOY_OPERATION , address ) ) ; } else { for ( String serverGroup : serverGroups ) { final ModelNode address = createAddress ( SERVER_GROUP , serverGroup , DEPLOYMENT , name ) ; builder . addStep ( createOperation ( DEPLOYMENT_DEPLOY_OPERATION , address ) ) ; } } }
Adds the deploy operation as a step to the composite operation .