Questions Tagged With signalshttps://answers.axonivy.com/tags/signals/?type=rss&user=Stefan13questions tagged <span class="tag">signals</span>enWed, 14 Sep 2016 16:23:04 -0400Sending Signals, how to define a Signal only oncehttps://answers.axonivy.com/questions/2027/sending-signals-how-to-define-a-signal-only-once<p>Hi,</p> <p>When using signals, a signal is defined as a string, for example in a Signal Start Event. This string has to be coded at least twice, when you send a signal and when you receive a signal. This can produce a spelling mistake easily, for exmple, somebody sends xxx:awaiting_end_of_rejection_period:start, but the SignalStartEvent waits for xxx:await_end_of_rejection_period:start.</p> <p>I would like to define all my signal strings in an interface like this in Java:</p> <p>public interface SignalCodes { public static String INITIALIZE_REQUEST = "xxx:initialize_request:start"; public static String RECOGNIZE_BUSINESS_CASE = "xxx:recognize_business_case:start"; public static String IDENTIFY_REQUESTER = "xxx:identify_requester:start"; public static String CREATE_REQUEST_AND_REQUESTER = "xxx:create_request_and_requester:start"; public static String RATE_REQUEST = "xxx:rate_request:start"; public static String AWAIT_END_OF_REJECTION_PERIOD = "xxx:awaiting_end_of_rejection_period:start"; public static String REJECT_REQUEST = "xxx:reject_request:start"; public static String PEP_CHECK = "xxx:pep_check:start"; public static String MANUAL_HANDLING = "xxx:manual_handling:start"; public static String SEND_CONTRACT_DOCUMENTS = "xxx:send_contract_documents:start"; }</p> <p>I can use thise definition when i send the signal programmatically, but i can't use it in the SignalStartEvent. There only a hard coded string ca be used.</p> <p>Is there a solution for this problem? Define a signal string only once and then use ist on both sides, sender and receiver?</p> <p>I think, the CMS should be the right place to define the signal strings.</p>Stefan13Wed, 14 Sep 2016 16:23:04 -0400https://answers.axonivy.com/questions/2027/sending-signals-how-to-define-a-signal-only-oncesignalscms