Tabnine Logo
KieSessionClientCommandObject
Code IndexAdd Tabnine to your IDE (free)

How to use
KieSessionClientCommandObject
in
org.kie.services.client.api.command

Best Java code snippets using org.kie.services.client.api.command.KieSessionClientCommandObject (Showing top 20 results out of 315)

origin: org.kie.remote/kie-remote-client

/**
 * @return a {@link KieSession} instance that acts a client instance to the remote API
 */
public KieSession getKieSession() {
  return new KieSessionClientCommandObject(config);
}
origin: org.kie.remote/kie-remote-client

@Override
public <T> T execute( Command<T> command ) {
  return (T) executeCommand(command);
}
origin: org.kie.remote/kie-remote-client

@Override
public KieBase getKieBase() {
  return unsupported(KieSession.class, KieBase.class);
}
origin: org.kie.remote/kie-remote-client

KieSessionClientCommandObject spyCmdObj = Mockito.spy(new KieSessionClientCommandObject(config));
Object inst = clientClass.getConstructor(new Class[0]).newInstance(new Object[0]);
spyCmdObj.preprocessParameterCommand(inst, objList);
logger.debug( "Are {} instances checked for user-defined classes?", clientClass.getSimpleName() );
try {
  verify(spyCmdObj, atLeastOnce()).addPossiblyNullObject(any(), any(List.class));
} catch( Throwable t ) {
  throw new AssertionError( clientClass.getSimpleName() );
origin: org.kie.remote/kie-remote-client

@Override
public ProcessInstance getProcessInstance( CorrelationKey correlationKey ) {
  GetProcessInstanceByCorrelationKeyCommand cmd = new GetProcessInstanceByCorrelationKeyCommand();
  String strCorrKey = convertCorrelationKeyToString(correlationKey);
  cmd.setCorrelationKey(strCorrKey);
  return executeCommand(cmd);
}
origin: org.kie.remote/kie-remote-client

@Override
public ProcessInstance startProcess( String processId, CorrelationKey correlationKey, Map<String, Object> parameters ) {
  StartCorrelatedProcessCommand cmd = new StartCorrelatedProcessCommand();
  cmd.setProcessId(processId);
  JaxbStringObjectPairArray arrayMap = convertMapToJaxbStringObjectPairArray(parameters);
  cmd.setParameter(arrayMap);
  String strCorrKey = convertCorrelationKeyToString(correlationKey);
  cmd.setCorrelationKey(strCorrKey);
  return executeCommand(cmd);
}
origin: org.kie.remote/kie-remote-client

@Override
public KieSessionConfiguration getSessionConfiguration() {
  return unsupported(KieSession.class, KieSessionConfiguration.class);
}
origin: org.kie.remote/kie-remote-client

@Override
public long getFactCount() {
  return (Long) executeCommand(new GetFactCountCommand());
}
origin: org.kie.remote/kie-remote-client

@Override
public String getEntryPointId() {
  return unsupported(KieSession.class, String.class);
}
origin: org.kie.remote/kie-remote-client

@Override
public Collection<ProcessInstance> getProcessInstances() {
  return (Collection<ProcessInstance>) executeCommand(new GetProcessInstancesCommand());
}
origin: org.kie.remote/kie-remote-client

@Override
public ProcessInstance createProcessInstance( String processId, Map<String, Object> parameters ) {
  return unsupported(KieSession.class, ProcessInstance.class);
}
origin: org.kie.remote/kie-remote-client

@Override
public int fireAllRules() {
  return (Integer) executeCommand(new FireAllRulesCommand());
}
origin: org.kie.remote/kie-remote-client

@Override
public ProcessInstance createProcessInstance( String processId, CorrelationKey correlationKey, Map<String, Object> parameters ) {
  return unsupported(CorrelationAwareProcessRuntime.class, ProcessInstance.class);
}
origin: org.kie.remote/kie-remote-client

@Override
public void abortProcessInstance( long processInstanceId ) {
  AbortProcessInstanceCommand cmd = new AbortProcessInstanceCommand();
  cmd.setProcessInstanceId(processInstanceId);
  executeCommand(cmd);
}
origin: org.kie.remote/kie-remote-client

@Override
public Collection<RuleRuntimeEventListener> getRuleRuntimeEventListeners() {
  return unsupported(KieSession.class, Collection.class);
}
origin: org.kie.remote/kie-remote-client

  @Override
  public void abortWorkItem( long id ) {
    AbortWorkItemCommand cmd = new AbortWorkItemCommand();
    cmd.setId(id);
    executeCommand(cmd);
  }
};
origin: org.kie.remote/kie-remote-client

@Override
public int getId() {
  return unsupported(KieSession.class, Integer.class);
}
origin: org.kie.remote/kie-remote-client

@Override
public ProcessInstance startProcess( String processId ) {
  StartProcessCommand cmd = new StartProcessCommand();
  cmd.setProcessId(processId);
  return (ProcessInstance) executeCommand(cmd);
}
origin: org.kie.remote/kie-remote-client

@Override
public Calendars getCalendars() {
  return unsupported(KieSession.class, Calendars.class);
}
origin: org.kie.remote/kie-remote-client

@Override
public Object getGlobal( String identifier ) {
  GetGlobalCommand cmd = new GetGlobalCommand();
  cmd.setIdentifier(identifier);
  return executeCommand(cmd);
}
org.kie.services.client.api.commandKieSessionClientCommandObject

Most used methods

  • <init>
  • addPossiblyNullObject
  • convertCorrelationKeyToString
  • executeCommand
  • preprocessParameterCommand
  • unsupported

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setScale (BigDecimal)
  • notifyDataSetChanged (ArrayAdapter)
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now