Questions Tagged With signalshttps://answers.axonivy.com/tags/signals/?type=rssquestions tagged <span class="tag">signals</span>enTue, 14 May 2019 10:30:00 -0400Signal wildcards behave in an unexpected wayhttps://answers.axonivy.com/questions/3797/signal-wildcards-behave-in-an-unexpected-way<p>Hi Axon.ivy Team,</p> <p>I'm using Axon.ivy LTS 7.0.8 and I'm getting an issue related to <code>Signal</code>.</p> <p>I have 4 signal receivers:</p> <ol> <li> <p><code>one</code></p> </li> <li> <p><code>one:two</code></p> </li> <li> <p><code>one:two:three</code></p> </li> <li> <p><code>one:two:three:four</code></p> </li> </ol> <p>When I send the signal <code>one:two:three:four</code>, I expect that only the (4) receiver would be triggered. Unfortunately, I was surprised that <strong>all</strong> four of them were triggered.</p> <p><img alt="all four signal receivers are triggered" src="https://answers.axonivy.com/upfiles/image_(3).png"></p> <p>According to the official document, I would expect that only if I use the wildcard in the pattern of the Receiver, I will have the same behaviours (<code>one:*</code>, <code>one:two:*</code>, <code>one:two:three:*</code>) but in this case, the wildcard does not matter much here.</p> <p>Is it a bug or by design that the Signal Receivers behave like that?</p> <p>Thanks! Jack</p>vagabondTue, 14 May 2019 10:30:00 -0400https://answers.axonivy.com/questions/3797/signal-wildcards-behave-in-an-unexpected-waysignalsTask changes priority after SignalBoundaryhttps://answers.axonivy.com/questions/3375/task-changes-priority-after-signalboundary<p>I have a UserTask that can optionally be cancelled by firing a Signal. When the Signal is actually received the Task seems to change its Priority from <code>HIGH</code> to <code>LOW</code>. Why does that happen? </p> <p><img alt="alt text" src="https://answers.axonivy.com/upfiles/userTaskPriorities.png"></p>SupportIvyTeamMon, 30 Jul 2018 09:10:02 -0400https://answers.axonivy.com/questions/3375/task-changes-priority-after-signalboundarysignalstaskHow to interact with fired signals in CaseMaphttps://answers.axonivy.com/questions/2955/how-to-interact-with-fired-signals-in-casemap<p>Extracted questions from another post by <a href="https://answers.axonivy.com/users/118/trungdv">@trungdv</a></p> <ul> <li>How to handle case that i have paralell tasks? Example: when employee just come to company, we need to do three things paralelly</li> <li>In one process of a stage, if i want to break that process to smaller processes and connect them by signal (more flexible), the first mini process will send signal to second process and may be create new ivy task there. In business point of view, this process is completed when all mini processes are completed. Does CaseMap support for visualizing this case? </li> </ul>SupportIvyTeamFri, 03 Nov 2017 09:29:06 -0400https://answers.axonivy.com/questions/2955/how-to-interact-with-fired-signals-in-casemapsignalscasemapHow to use SingalStart in CaseMaphttps://answers.axonivy.com/questions/2941/how-to-use-singalstart-in-casemap<p>Hi ivyteam</p> <p>I'm using ivy 7.0.1 and I have the process like this: <img alt="alt text" src="https://answers.axonivy.com/upfiles/Untitled_u923Vsf.png"></p> <p>My project has two stage, First stage is Data Gathering, Second is Document. In each stage i have a ivy process (could be more in real case), and they are connected by signal (see on picture)</p> <p>When first process is done, it send signal then second process is started and create task to responsible role, If that activator open task, process can continue with another signal to create another task and so on...</p> <p>When i use ivy 7, i try with CaseMap, but i can not integrate those process to case map, because i see it only support for Start Process. <img alt="alt text" src="https://answers.axonivy.com/upfiles/Untitled_KRPlfag.png"> In this picture i only can browse first startlink, not signal or second task switch.</p> <p>My question is:</p> <ul> <li>Can i apply CaseMap for my project (it use a lot of signal like this pattern)? Or we need to remove all signal and change to startlink? I see we no need to use signal and task switch. how to handle signal boundary event on startlink?</li> <li>In case we only use startlink, how to secure them?</li> </ul> <p>Thanks</p>trungdvTue, 31 Oct 2017 05:39:31 -0400https://answers.axonivy.com/questions/2941/how-to-use-singalstart-in-casemapsignalsivy7casemapHow to set the data type for Ivy signal?https://answers.axonivy.com/questions/2868/how-to-set-the-data-type-for-ivy-signal<p>I am trying to pass some data into a process via Ivy signal. In the Inscribe Signal Start Event window, how can I specified the datatype (CustomClass instead of Data) in the output tab? Thank you everyone.</p>Nhan NguyenThu, 14 Sep 2017 07:08:19 -0400https://answers.axonivy.com/questions/2868/how-to-set-the-data-type-for-ivy-signalsignalsSending 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-oncesignalscmsHow signal be handled in multiple PMV?https://answers.axonivy.com/questions/1887/how-signal-be-handled-in-multiple-pmv<p>Hi all</p> <p>I'm a newbie on signal concept, so I don't know exactly how signal is triggered on multiple PMVs, my usecase is: In the PMV 1 of project A, I created a ivy task. Then some days later, I deploy version 2 or that project, I also create the same task on that version. I have a portal page where it load all task from all PMVs. so from here I can open the old task. I assume that in the implementation of task, when the task is open, it do some stuff then send the signal (code: ABC) to do any other stuffs. So what if I open the old task(on PMV 1) then when it send the signal ABC, is the signal triggered on the PMV 2 ?</p> <p>Thanks</p>trungdvWed, 13 Jul 2016 11:45:13 -0400https://answers.axonivy.com/questions/1887/how-signal-be-handled-in-multiple-pmvaxon.ivysignalsIssue with receiving and sending the same signal in a processhttps://answers.axonivy.com/questions/1869/issue-with-receiving-and-sending-the-same-signal-in-a-process<p>Hi everyone</p> <p>So I have a process with a User Task that has a signal boundary event that listens to a certain signal X. After the user task is finished I check some values and depending on that I want to send the same signal X. See the image below: </p> <p><img alt="no alt text" src="http://answers.axonivy.com/upfiles/signals.png"></p> <p>But when that signal is sent I get the following exception:</p> <pre><code>java.lang.IllegalStateException: State of Task must be one of the following values CREATED, RESUMED but is DESTROYED at ch.ivyteam.api.API.checkObjectState(API.java:323) at ch.ivyteam.ivy.workflow.internal.Task.end(Task.java:2642) at ch.ivyteam.ivy.workflow.internal.Task$49.execute(Task.java:2618) at ch.ivyteam.ivy.persistence.base.AbstractPersistencyService.execute(AbstractPersistencyService.java:176) at ch.ivyteam.ivy.persistence.base.AbstractPersistencyService.execute(AbstractPersistencyService.java:233) at ch.ivyteam.ivy.persistence.base.ClassPersistencyService.execute(ClassPersistencyService.java:660) [...] </code></pre> <p>I uploaded a demo project here: <a href="https://drive.google.com/file/d/0B3V8Sh7Fl7FXR3dzMFhzVzJlTEk/view?usp=sharing">https://drive.google.com/file/d/0B3V8Sh7Fl7FXR3dzMFhzVzJlTEk/view?usp=sharing</a></p> <p>Thanks in advance</p>Lars TuchelTue, 05 Jul 2016 14:08:11 -0400https://answers.axonivy.com/questions/1869/issue-with-receiving-and-sending-the-same-signal-in-a-processsignalsprocessivyIs there any possible way to switch SYSTEM session to another regular user's session in a ProgramStart execution?https://answers.axonivy.com/questions/1780/is-there-any-possible-way-to-switch-system-session-to-another-regular-user-s-session-in-a-programstart-execution<p>In our project, we use <code>ProgramStart</code> to implement <code>cron</code> jobs. The executions will always be carried on by the SYSTEM user using only one <code>ISession(id = 0)</code>.</p> <p>The problem is, we heavily store plenty of <em>Context Information</em> (authentication token, user-session-specific data, etc) into <code>ISession.setAttribute()</code>. It works well on normal situation with logged-in Ivy user. However, because in background jobs, there is only one session, each execution will interfere with each others, trying to <code>set</code> and <code>get</code> the <em>Context Information</em>.</p> <p>In addition, this happens the same with <code>Signals</code> since execution of those also delegated to <code>SYSTEM</code>.</p> <p>I've tried to call <code>ivy.session.login()</code> but it threw exception since Axon.ivy refuse to allow logging out of <code>SYSTEM</code> user.</p> <p>My question is: Is there any possible way to switch from SYSTEM sessions to regular normal user's session?</p> <p>Thanks</p>Genzer HawkerFri, 27 May 2016 07:54:55 -0400https://answers.axonivy.com/questions/1780/is-there-any-possible-way-to-switch-system-session-to-another-regular-user-s-session-in-a-programstart-executionbackground-jobsignalssessionsystem