Class ReactToMessageCmd

java.lang.Object
com.flowable.engage.engine.impl.cmd.ReactToMessageCmd
All Implemented Interfaces:
org.flowable.common.engine.impl.interceptor.Command<java.lang.String>

public class ReactToMessageCmd
extends java.lang.Object
implements org.flowable.common.engine.impl.interceptor.Command<java.lang.String>
Author:
Luis Belloch
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected java.lang.String messageId  
    protected java.lang.String reaction  
    protected java.lang.String userId  
  • Constructor Summary

    Constructors 
    Constructor Description
    ReactToMessageCmd​(java.lang.String messageId, java.lang.String userId, java.lang.String reaction)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String execute​(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)  
    protected java.lang.String reactionAlreadyExists​(java.util.List<Reaction> reactions)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • messageId

      protected final java.lang.String messageId
    • userId

      protected final java.lang.String userId
    • reaction

      protected final java.lang.String reaction
  • Constructor Details

    • ReactToMessageCmd

      public ReactToMessageCmd​(java.lang.String messageId, java.lang.String userId, java.lang.String reaction)
  • Method Details

    • execute

      public java.lang.String execute​(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
      Specified by:
      execute in interface org.flowable.common.engine.impl.interceptor.Command<java.lang.String>
    • reactionAlreadyExists

      protected java.lang.String reactionAlreadyExists​(java.util.List<Reaction> reactions)