All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.drools.core.command.JoinConversationCommand Maven / Gradle / Ivy

There is a newer version: 9.44.0.Final
Show newest version
package org.drools.core.command;

import org.drools.core.command.impl.ExecutableCommand;
import org.kie.api.runtime.Context;


public class JoinConversationCommand implements ExecutableCommand {
    private String conversationId;

    public JoinConversationCommand(String conversationId) {
        this.conversationId = conversationId;
    }

    @Override
    public Void execute(Context context) {
        RequestContextImpl         reqContext = (RequestContextImpl)context;
        ConversationContextManager cvnManager = reqContext.getConversationManager();
        cvnManager.joinConversation(reqContext, conversationId);

        return (Void) null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy