Questions Tagged With eventhttps://answers.axonivy.com/tags/event/?type=rssquestions tagged <span class="tag">event</span>enThu, 10 Oct 2019 01:47:28 -0400Using Websockets in axonIvy 7.4https://answers.axonivy.com/questions/4091/using-websockets-in-axonivy-7-4<p>Is there any way to use websockets in axonIvy for some real time communication? we need a websocket server for an integration, and so far nothing has worked.</p> <p>Additionally, is it possible to mount custom servlets in axonIvy</p>TareqKThu, 10 Oct 2019 01:47:28 -0400https://answers.axonivy.com/questions/4091/using-websockets-in-axonivy-7-4websocketeventIvy WorkflowSystemEvent was not fired when session timeout?https://answers.axonivy.com/questions/3776/ivy-workflowsystemevent-was-not-fired-when-session-timeout<p>Hi IvyTeam,</p> <p>We are working on project that listen on WorkflowSystemEvent to know when the Ivy Task was created/changed. Everything working fine if we are actively change the Ivy Task, but when the user are opening the task and then his session timeout, Ivy is able to reset the Task state to SUSPENDED, but it doesn't fire the WorkflowSystemEvent, cause our application don't know the Ivy Task had changed its state to SUSPENDED.</p> <p>We are working on Axon.ivy 7.0.8</p>vinh_Thu, 18 Apr 2019 04:04:31 -0400https://answers.axonivy.com/questions/3776/ivy-workflowsystemevent-was-not-fired-when-session-timeouteventtaskivyworkflowError "Uncaught Exception in thread 'AWT-EventQueue-1' " Linux Mint 19https://answers.axonivy.com/questions/3410/error-uncaught-exception-in-thread-awt-eventqueue-1-linux-mint-19<p>I get an error that says "Uncaught Exception in thread 'AWT-EventQueue-1' " when I try to open "Attribute" in "User Dialog Event" <img alt="alt text" src="https://answers.axonivy.com/upfiles/Selection_006.png"><img alt="alt text" src="https://answers.axonivy.com/upfiles/Selection_007.png"></p> <p>This is the Error Report :</p> <pre><code>--- Stack Trace --- java.lang.NullPointerException at ch.ivyteam.awtExt.treetable.TreeTableRenderer.getNode(TreeTableRenderer.java:272) at ch.ivyteam.ivy.awtGuiComponents.ivvScriptTrees.IvyScriptTreeTableCellRenderer.getTableCellRendererComponent(IvyScriptTreeTableCellRenderer.java:106) at javax.swing.JTable$AccessibleJTable.getAccessibleChild(JTable.java:7037) at javax.swing.JTable$AccessibleJTable.getAccessibleAt(JTable.java:7424) at javax.swing.JTable$AccessibleJTable.valueChanged(JTable.java:6939) at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:184) at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:164) at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:211) at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:405) at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:415) at javax.swing.DefaultListSelectionModel.removeSelectionIntervalImpl(DefaultListSelectionModel.java:576) at javax.swing.DefaultListSelectionModel.clearSelection(DefaultListSelectionModel.java:420) at javax.swing.JTable.clearSelection(JTable.java:2120) at javax.swing.JTable.clearSelectionAndLeadAnchor(JTable.java:2128) at javax.swing.JTable.tableChanged(JTable.java:4451) at ch.ivyteam.awtExt.treetable.VariableRowHeightTreeTable.tableChanged(VariableRowHeightTreeTable.java:44) at ch.ivyteam.awtExt.treetable.InternalModel.computeVisibleRows(InternalModel.java:645) at ch.ivyteam.awtExt.treetable.InternalModel.expandOrCollapse(InternalModel.java:428) at ch.ivyteam.awtExt.treetable.FilteredInternalModel.filterExpandOrCollapse(FilteredInternalModel.java:202) at ch.ivyteam.awtExt.treetable.BaseMapModelFilter.filterExpandOrCollapse(BaseMapModelFilter.java:123) at ch.ivyteam.awtExt.treetable.FilteredInternalModel.expandOrCollapse(FilteredInternalModel.java:67) at ch.ivyteam.awtExt.treetable.TreeTable$1.mouseClicked(TreeTable.java:94) at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:270) at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:269) at java.awt.Component.processMouseEvent(Component.java:6542) at javax.swing.JComponent.processMouseEvent(JComponent.java:3324) at java.awt.Component.processEvent(Component.java:6304) at java.awt.Container.processEvent(Container.java:2239) at java.awt.Component.dispatchEventImpl(Component.java:4889) at java.awt.Container.dispatchEventImpl(Container.java:2297) at java.awt.Component.dispatchEvent(Component.java:4711) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4544) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476) at java.awt.Container.dispatchEventImpl(Container.java:2283) at java.awt.Component.dispatchEvent(Component.java:4711) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84) at java.awt.EventQueue$4.run(EventQueue.java:733) at java.awt.EventQueue$4.run(EventQueue.java:731) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) at java.awt.EventQueue.dispatchEvent(EventQueue.java:730) at org.GNOME.Accessibility.AtkWrapper$6.dispatchEvent(AtkWrapper.java:715) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) </code></pre>ivy-jlaTue, 04 Sep 2018 04:16:23 -0400https://answers.axonivy.com/questions/3410/error-uncaught-exception-in-thread-awt-eventqueue-1-linux-mint-19designereventerror-handlinglinuxTracking Broadcast eventshttps://answers.axonivy.com/questions/2754/tracking-broadcast-events<p>Hy there,</p> <p>In our solution there is sometimes the problem that the Data from Task A overwirte the Data from Task B. This happen if we open the Task parallel and there is a ria broadcast Event. The big problem is now to find out which event causes the bug. Is there a way to track, log or query the happend Broadcasts for a Task or a Case or over all? </p> <p>kind regards Thomas Wirz</p>Thomas WirzFri, 14 Jul 2017 04:22:39 -0400https://answers.axonivy.com/questions/2754/tracking-broadcast-eventsrichdialogloggingeventIntermediate Event Bean Running Statehttps://answers.axonivy.com/questions/1380/intermediate-event-bean-running-state<p>I have an <a href="http://developer.axonivy.com/doc/latest/DesignerGuideHtml/ivy.processmodeling.html#ivy-processmodels-elements-intermediate">Intermediate Event Bean</a> which is </p> <ul> <li>used in several processes in the same project and</li> <li>the project is deployed to multiple <a href="http://developer.axonivy.com/doc/latest/DesignerGuideHtml/ivy.concepts.html#ivy-deployment-processmodelversion">PMV</a>s</li> </ul> <p>Is an Intermediate Event Bean started once per <a href="http://developer.axonivy.com/doc/latest/DesignerGuideHtml/ivy.concepts.html#ivy-deployment-application">Application</a>, project (PMV) or element on the engine?</p>Flavio SadeghiThu, 25 Jun 2015 11:46:11 -0400https://answers.axonivy.com/questions/1380/intermediate-event-bean-running-stateeventDetect a user session is closing because of timeouthttps://answers.axonivy.com/questions/1359/detect-a-user-session-is-closing-because-of-timeout<p>Hi everybody,</p> <p>Is there a way to detect a user session is closing because of a timeout? There is the "unload" event that can be catched in an ULC Rich Dialog for performing some stuff when the user close a Dialog. Is there something similar for a session timeout?</p> <p>If not it would be very usefull to have such a possibility.</p> <p>Thanks in advance Emmanuel</p>EmmanuelSat, 13 Jun 2015 10:22:25 -0400https://answers.axonivy.com/questions/1359/detect-a-user-session-is-closing-because-of-timeoutsystemeventsessioneventUsing the Intermediate Eventhttps://answers.axonivy.com/questions/951/using-the-intermediate-event<p>Hello guys. :) I wanted to ask if someone could provide me with an example of an intermediate event.</p> <p>I tried to follow the example that is in the xpert ivy designer guide. Which can be found <a href="https://www.google.de/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=1&amp;cad=rja&amp;uact=8&amp;ved=0CCEQFjAA&amp;url=http%3A%2F%2Fwww.ivyteam.ch%2Fdownloads%2Fxivy%2F4.2.0%2Fdoc%2FDesignerGuide.pdf&amp;ei=lakWVImnAcmOO9f3gfAD&amp;usg=AFQjCNFcVI--hj6yjeu5xZJPB7o5O2Eg8g&amp;sig2=9bo_LNnJ6gFn8EglCjvg4Q&amp;bvm=bv.75097201,d.ZWU">here</a>. But I have no clue of what I'm doing. :(</p> <p>This is my code: </p> <pre><code>import java.awt.Container; </code></pre> <p>import java.awt.GridBagConstraints; import java.awt.GridLayout; import java.awt.Insets;</p> <p>import javax.swing.JLabel;</p> <p>import ch.ivyteam.ivy.persistence.PersistencyException; import ch.ivyteam.ivy.process.extension.IIvyScriptEditor; import ch.ivyteam.ivy.process.extension.IProcessExtensionConfigurationEditorEnvironment; import ch.ivyteam.ivy.process.extension.impl.AbstractProcessExtensionConfigurationEditor; import ch.ivyteam.ivy.process.intermediateevent.AbstractProcessIntermediateEventBean; import ch.ivyteam.ivy.process.intermediateevent.IProcessIntermediateEventBean; import ch.ivyteam.log.Logger;</p> <p>/*<em> * </em>/</p> <p>/<em><em> * @author Flaty </em> </em>/ public class IntermediateTest extends AbstractProcessIntermediateEventBean implements IProcessIntermediateEventBean {</p> <pre><code>/** * */ public IntermediateTest() { super("IntermediateTest", "Description of IntermediateTest", String.class); } /* (non-Javadoc) * @see ch.ivyteam.ivy.process.eventstart.IProcessStartEventBean#poll() */ @Override public void poll() { boolean eventOccured = true; String additionalInformation = ""; String resultObject = ""; // An external system was trigger to do something. // The external system or the one who triggered the external system must provide // a event identifier so that later the event identifier can be used to match // the waiting IntermediateEvent with the event from the external system. // Therefore, the event identifier has to be provided twice. // First, on the IntermediateEvent Inscription Mask to define for // which event the IntermediateEvent has to wait for. // Second, on the IntermediateEventBean to specify which event was received. // However, the external system that sends the event must somehow provide the event identifier in his event data. String eventIdentifier = ""; // ===&gt; Add here your code to poll for new events from the external system // that should trigger the continue of waiting processes &lt;=== // Parse the event identifier and the result object out of the event data if (eventOccured) { try { getEventBeanRuntime().fireProcessIntermediateEventEx( eventIdentifier, resultObject, additionalInformation); } catch (PersistencyException ex) { // ===&gt; Add here your exception handling code if the event cannot be processed &lt;=== } } } /** * @author Flaty * */ public static class Editor extends AbstractProcessExtensionConfigurationEditor { private IIvyScriptEditor editorUser; private IIvyScriptEditor editorEventTyp; private IIvyScriptEditor editorLinkId; private IIvyScriptEditor editorFieldValue; @Override protected void createEditorPanelContent(Container editorPanel, IProcessExtensionConfigurationEditorEnvironment editorEnvironment) { editorPanel.setLayout(new GridLayout(4,2)); editorUser = editorEnvironment.createIvyScriptEditor(null,null, "String"); editorEventTyp = editorEnvironment.createIvyScriptEditor(null,null, "String"); editorLinkId = editorEnvironment.createIvyScriptEditor(null, null, "String"); editorFieldValue = editorEnvironment.createIvyScriptEditor(null, null); editorPanel.add(new JLabel("User")); editorPanel.add(editorUser.getComponent()); editorPanel.add(new JLabel("Event Typ")); editorPanel.add(editorEventTyp.getComponent()); editorPanel.add(new JLabel("Link-Id")); editorPanel.add(editorLinkId.getComponent()); editorPanel.add(new JLabel("Feldwert")); editorPanel.add(editorFieldValue.getComponent()); } @Override protected void loadUiDataFromConfiguration() { editorUser.setText(getBeanConfigurationProperty("User")); editorEventTyp.setText(getBeanConfigurationProperty("EventTyp")); editorLinkId.setText(getBeanConfigurationProperty("LinkId")); editorFieldValue.setText(getBeanConfigurationProperty("Feldwert")); } @Override protected boolean saveUiDataToConfiguration() { setBeanConfigurationProperty("User", editorUser.getText()); setBeanConfigurationProperty("EventTyp", editorEventTyp.getText()); setBeanConfigurationProperty("LinkId", editorLinkId.getText()); setBeanConfigurationProperty("Feldwert", editorFieldValue.getText()); return true; } } </code></pre> <p>}</p> <p>So it is calling the poll method but I don't know what to do now. Actually we want to send an email in advance ( which is not a problem ) and that with this email we want to tell someone else that he should do something. And our process should wait. Than the other person should be able to send some parameters and let the process proceed. </p> <p>I hope the problem is understandable and I hope it is not completely stupid what we are trying to do.</p> <p>Thanks in advance. :)</p>FlatyMon, 15 Sep 2014 10:58:45 -0400https://answers.axonivy.com/questions/951/using-the-intermediate-eventevent"State of Task must be one of the following values CREATED, RESUMED but is ZOMBIE" error when using Java threads on Ivy start event beanhttps://answers.axonivy.com/questions/880/state-of-task-must-be-one-of-the-following-values-created-resumed-but-is-zombie-error-when-using-java-threads-on-ivy-start-event-bean<p>Hi,</p> <p>In an our Ivy project, we used Ivy trigger to execute many processes (to speed up our services). But it made the Ivy server being slow down so much when many processes are executed. So we use Java threads instead of Ivy trigger, but we get an error about "State of Task must be one of the following values CREATED, RESUMED but is ZOMBIE" sometimes.</p> <p>Is anyone know how to solve this problem?</p> <p>Thank you in advance</p>vydongThu, 24 Jul 2014 06:11:45 -0400https://answers.axonivy.com/questions/880/state-of-task-must-be-one-of-the-following-values-created-resumed-but-is-zombie-error-when-using-java-threads-on-ivy-start-event-beaneventEvent mapping for function keyshttps://answers.axonivy.com/questions/397/event-mapping-for-function-keys<p>I search for a possibility to start a rich dialog event with the function keys on the keyboard, e.g. to use F5 for refresh. I was successful to use the normal keys for characters or digits, but not for the function keys. How could this be possible?</p>Matthias LangThu, 31 Mar 2011 04:57:08 -0400https://answers.axonivy.com/questions/397/event-mapping-for-function-keysrichdialogeventSend event to parent rich dialoghttps://answers.axonivy.com/questions/381/send-event-to-parent-rich-dialog<p>Is there any good solution to fire event from child RDC to parent RDC excluding event in SUBSCRIBER scope?</p> <p>Details: I frequently encounter situation when I have some RDCs loaded into R<em>Display component which have to "communicate" with their parent (RDC where R</em>Display located) What is the best way to do this?</p>Andriy PetrivskyyThu, 18 Nov 2010 11:43:23 -0500https://answers.axonivy.com/questions/381/send-event-to-parent-rich-dialogrichdialogevent