Questions asked by Nikel Weishttps://answers.axonivy.com/questions/asked-by/12/nikel-weis/?type=rssQuestions asked by <a href="/users/12/nikel-weis" >Nikel Weis</a>enTue, 04 Aug 2015 14:52:40 -0400Are the Java-Files within src_dataClasses committed to a VCS?https://answers.axonivy.com/questions/1425/are-the-java-files-within-src_dataclasses-committed-to-a-vcs<p>When editing the Java-Class of a DataClass within the Java-Perspective it seems that the corresponding Java-Code is not committed to a VCS. How does Ivy work here? Are the ivyClass-Files used to generate those on the fly?</p>Nikel WeisTue, 04 Aug 2015 14:52:40 -0400https://answers.axonivy.com/questions/1425/are-the-java-files-within-src_dataclasses-committed-to-a-vcsjavaHow to delete a dependent persistence object?https://answers.axonivy.com/questions/1371/how-to-delete-a-dependent-persistence-object<p>We have a persistence object A which has a property <code>List(Object b)</code>.</p> <p>When we remove one object b from the list with:</p> <pre><code>out.questionnaireConcept.QuestionnaireConceptParticpants.remove(in.participantToRemove); </code></pre> <p>and then try to persist this with:</p> <pre><code>ivy.persistence.***MuPersistence.merge(in.questionnaireConcept); </code></pre> <p>The participant which we tried to remove is still present in the database. I thought this could be set within the persistence definition in this window:</p> <p><img alt="alt text" src="http://answers.axonivy.com/upfiles/Unbenannt_6vIaC2d.PNG"></p> <p>Do we have to remove the object b separately from the database or how can we achieve this?</p>Nikel WeisThu, 18 Jun 2015 14:11:26 -0400https://answers.axonivy.com/questions/1371/how-to-delete-a-dependent-persistence-objectpersistenceHow to work with NULL-Values in DateTime-Types using persistence?https://answers.axonivy.com/questions/1369/how-to-work-with-null-values-in-datetime-types-using-persistence<p>We are facing the following problem: We are using the persistence-feature to handle complex objects. During the fetch we get values where a datetime-field is not set (NULL in the database) - when we try to write the entity object instance back to the database (merge) we get the following exception:</p> <pre><code>"SQLException: Only dates between January 1, 1753 and December 31, 9999 are accepted. DataException: could not update: [de.*****.qia.persistence.QuestionnaireQuestion#130] PersistenceException: org.hibernate.exception.DataException: could not update: [de.*****.qia.persistence.QuestionnaireQuestion#130] RollbackException: Error while committing the transaction Failed to excecute operation "merge" for persistence unit "qiaPersistence". </code></pre> <p>The reason is quite obvious - the auto-initialized value is out of the allowed range for the MSSQL-Server. But shouldn't NULL be the value to be written back?</p> <p>How can we adress this? A workaround would be to enforce that a date is created during the initial persist but there could be situation where "NULL" is programmtically a valid entry.</p> <p>How can we adress this issue?</p> <p>Edit: RDBMS: MSSQL Express 2008</p>Nikel WeisWed, 17 Jun 2015 11:45:23 -0400https://answers.axonivy.com/questions/1369/how-to-work-with-null-values-in-datetime-types-using-persistencepersistenceWhich data-type can we use to save a file to a database using the IvyPersistence?https://answers.axonivy.com/questions/1336/which-data-type-can-we-use-to-save-a-file-to-a-database-using-the-ivypersistence<p>Currently we are trying to write a file to the database using Ivy's persistence API - which data-type can we use to achieve this or do we have to use a plain SQL-Step?</p>Nikel WeisTue, 26 May 2015 12:15:02 -0400https://answers.axonivy.com/questions/1336/which-data-type-can-we-use-to-save-a-file-to-a-database-using-the-ivypersistencepersistenceWhich setting is relevant for avoiding [dialog instance with id ... is not available any more]?https://answers.axonivy.com/questions/1181/which-setting-is-relevant-for-avoiding-dialog-instance-with-id-is-not-available-any-more<p>We have a timeout which makes dialog instances die after a certain timeout (I think it's 60000 ms). Which setting in the Ivy-Server is relevant to increase the timeout?</p> <p>Due to the fact that we are able to customize error-messages from &gt; 5.1 we need to increase this (<a href="http://developer.axonivy.com/doc/latest/EngineGuideHtml/configuration.html#configuration-errorhandling">see here</a>).</p> <p>I've two settings in mind:</p> <ul> <li>connectionTimeout</li> <li>keepAliveTimeout</li> </ul>Nikel WeisFri, 27 Feb 2015 11:40:24 -0500https://answers.axonivy.com/questions/1181/which-setting-is-relevant-for-avoiding-dialog-instance-with-id-is-not-available-any-morejsferror-handlingWhat possibilities do we have to interact with .NET-Applications?https://answers.axonivy.com/questions/1166/what-possibilities-do-we-have-to-interact-with-net-applications<p>Is there a way to interact with .NET-Applications other than a web-service call? In marketing material an interaction of JAVA/.NET-Application is promised. The Java-Integration is pretty strong - but I've seen no special .NET-Element. Are there any experiences?</p>Nikel WeisTue, 17 Feb 2015 15:42:19 -0500https://answers.axonivy.com/questions/1166/what-possibilities-do-we-have-to-interact-with-net-applications.net-integrationHow to avoid IllegalStateException during login & logout in a Script-Step?https://answers.axonivy.com/questions/694/how-to-avoid-illegalstateexception-during-login-logout-in-a-script-step<p>We have a certain situation where the current named user shall be logged out and be logged in as a different user. The problem is, that this results in an illegal task state. Code in the script step:</p> <pre><code>ivy.session.loginSessionUser("user1", "user1"); if(in.isSuperior == true) { ivy.session.loginSessionUser("superiorUser", "superiorUser"); } </code></pre> <p>Exception:</p> <pre><code>Exception at element [13B4B87B3A16CFA4-f15-io0]: java.lang.IllegalStateException: State of Task must be one of the following values CREATED, RESUMED but is ZOMBIE: </code></pre> <p>Is there a way to avoid this behavoir?</p> <p>Xpert.ivy 4.3. - error occurs on Designer &amp; Server level.</p>Nikel WeisThu, 15 May 2014 11:30:21 -0400https://answers.axonivy.com/questions/694/how-to-avoid-illegalstateexception-during-login-logout-in-a-script-stepuserPersistence Object is not saved - ForeignKey is Null.https://answers.axonivy.com/questions/667/persistence-object-is-not-saved-foreignkey-is-null<p>We have two persistence objects where a hasMany b. So a is a property of b.</p> <p>Now we are creating an object of type b and asign the corresponding a-object to b. </p> <pre><code>b.a = a; </code></pre> <p>Then we try to save the newly created b object via:</p> <pre><code>ivy.persistence.persistenceUnit.merge(b); </code></pre> <p>Then it throws an error that the ForeignKey of a in table b cannot be null. But in the debugger object a is assigned correctly to object b.</p> <p>In which pitfall did I run here?</p>Nikel WeisTue, 29 Apr 2014 08:45:16 -0400https://answers.axonivy.com/questions/667/persistence-object-is-not-saved-foreignkey-is-nullpersistenceIs it possible to create an ivy persistence object from String?https://answers.axonivy.com/questions/658/is-it-possible-to-create-an-ivy-persistence-object-from-string<p>Usually a persistence object is created via:</p> <pre><code>import objects.Product; // persist new created product Product product; product.name = "Product name"; product.nr = 12; ivy.persistence.webshpo.persist(product); </code></pre> <p>What we are trying to do (for a dynamic interface) to dynamically create the persistence object with something like:</p> <pre><code>Object persistenceObject = Class.forName(in.persistenceClassName).newInstance(); </code></pre> <p>Is that generally possible? Can that be achieved in a ScriptStep or just in a JavaClass?</p> <p>Edit: We tried to give the full package name in the code mentioned above which returns a ClassNotFoundException:</p> <p>Object persistenceObject = Class.forName("objects.Product").newInstance();</p> <p>Edit 2: Changed persistenceUnit naming to persistenceObject according to Daniel's comment.</p>Nikel WeisFri, 25 Apr 2014 10:39:01 -0400https://answers.axonivy.com/questions/658/is-it-possible-to-create-an-ivy-persistence-object-from-stringpersistenceIs it possible to reference a template file from a different project?https://answers.axonivy.com/questions/651/is-it-possible-to-reference-a-template-file-from-a-different-project<p>We have two projects. One of the contains infrastructure code and should be included in the other project. The non-infrastructure project contains the main template in webContent/templates/PageTemplateLoggedIn.xhtml. Is it possible to reference this template from a different project?</p>Nikel WeisThu, 24 Apr 2014 10:40:11 -0400https://answers.axonivy.com/questions/651/is-it-possible-to-reference-a-template-file-from-a-different-projecthtmluserdialogIs it possible to apply field order of a persistent data-class to database table?https://answers.axonivy.com/questions/650/is-it-possible-to-apply-field-order-of-a-persistent-data-class-to-database-table<p>I've noticed that if I use the persistence API to create a database table the order of the table columns is not the same as in the persistence data-class. Is it possible to keep the field order in a data-class to a database table?</p>Nikel WeisThu, 24 Apr 2014 10:29:21 -0400https://answers.axonivy.com/questions/650/is-it-possible-to-apply-field-order-of-a-persistent-data-class-to-database-tablepersistenceEndless circular relation in 1:n relation correct?https://answers.axonivy.com/questions/643/endless-circular-relation-in-1-n-relation-correct<p>I've a 1:n relation defined using the persistence api. One customer has n delivery adresses. In the history object this appears as customer object who has a list of delivery addresses. Those delivery addresses themself also have a customer attached and that customer a list of delivery addresses and so on and so forth. While this is semantically correct im wondering if I did something wrong or is this correct?</p>Nikel WeisThu, 17 Apr 2014 08:43:07 -0400https://answers.axonivy.com/questions/643/endless-circular-relation-in-1-n-relation-correctpersistenceHas the HeartBleed-Vulnerabilty an impact on Xpert.ivy?https://answers.axonivy.com/questions/627/has-the-heartbleed-vulnerabilty-an-impact-on-xpert-ivy<p>Has the <a href="http://heartbleed.com/">HeartBleed-Vulnerabilty</a> an impact on Xpert.ivy?</p>Nikel WeisFri, 11 Apr 2014 14:18:04 -0400https://answers.axonivy.com/questions/627/has-the-heartbleed-vulnerabilty-an-impact-on-xpert-ivysecurityIs the ULC-WorkflowUI still supported and the future of ULC within Xpert.ivy?https://answers.axonivy.com/questions/251/is-the-ulc-workflowui-still-supported-and-the-future-of-ulc-within-xpert-ivy<p>I know that the ULC-Components are not the main road that Xpert.ivy will take. But what happens with the ULC WorkflowUI? We have the impression that the move to put the ULC WorkflowUI into maintenance-support-mode is going a bit too fast. Due to the fact that there are a lot of customers using the ULC-WorkflowUI intensively.</p> <p>We received answers from the offical support which were quite irritating because the proposed workaround to an - in my opinion - obvious error within the authentication/authorization component of the WorkflowUI contained security critical measures ("give all users all rights").</p> <p>So is the ULC-WorkflowUI already put into maintenance mode and are still substantinal resources committed to support or develop this AddOn further? I'm wondering because it says that this is officially supported Addon by the ivy-team.</p>Nikel WeisTue, 14 Jan 2014 12:39:26 -0500https://answers.axonivy.com/questions/251/is-the-ulc-workflowui-still-supported-and-the-future-of-ulc-within-xpert-ivyworkflowuiIs it possible to create entity classes from an existing database?https://answers.axonivy.com/questions/217/is-it-possible-to-create-entity-classes-from-an-existing-database<p>I'm wondering if it is possible to derive Data Entity Classes from an existing database. So to take it the other way around - not generating the database schema from the entity classes but the entity classes from a database. Is that somehow possible?</p>Nikel WeisThu, 19 Dec 2013 11:49:24 -0500https://answers.axonivy.com/questions/217/is-it-possible-to-create-entity-classes-from-an-existing-databasejpaWhat exactly is regarded as a "concurrent" session?https://answers.axonivy.com/questions/158/what-exactly-is-regarded-as-a-concurrent-session<p>We are having a little discussion here what exactly a "concurrent session" is. As I understood so far we have</p> <p>a) Named users</p> <p>b) Concurrent sessions</p> <p>The named user amount is the amount of Xpert.ivy-Users which my be imported via an AD or added manually in the ServerAdministrationPanel. But what is regarded a concurrent session?</p> <p>If I have 150 named users and I have 50 people logged in - so I've 50 concurrent sessions. </p> <p>But what happens if a user has (for example) two browsers opened and is logged in with the same account - would the last case consume two concurrent sessions?</p>Nikel WeisFri, 29 Nov 2013 16:27:58 -0500https://answers.axonivy.com/questions/158/what-exactly-is-regarded-as-a-concurrent-sessionlicenseHow to develop/debug classes that are integrated in the faces-config.xml?https://answers.axonivy.com/questions/153/how-to-develop-debug-classes-that-are-integrated-in-the-faces-config-xml<p>What is the best way/practice to develop and debug classes which need to be referenced in the faces-config.xml? I've this problem with custom validators and a custom phase listener that should be implemented. </p> <p>My current approach is to close the Designer and start it again for every debug or development step, which makes development of custom validators and PhaseListeners a pain. Is there a better way to have access to debugging &amp; development facilities?</p>Nikel WeisThu, 28 Nov 2013 10:48:28 -0500https://answers.axonivy.com/questions/153/how-to-develop-debug-classes-that-are-integrated-in-the-faces-config-xmlconfigurationfaces-config.xmlHow can I get enable sorting on a dataTable?https://answers.axonivy.com/questions/131/how-can-i-get-enable-sorting-on-a-datatable<p>I've dataTable-element and I want the content to be sortable. I'm using the following code:</p> <pre><code>&lt;p:dataTable value="#{data.projects}" var="project" paginator="true" rows="10" paginatorPosition="top"&gt; &lt;p:column sortBy="project['project_id']" headerText="Projekt-Nr."&gt; &lt;h:outputText value="#{project['project_id']}" /&gt; &lt;/p:column&gt; [...] </code></pre> <p>I think the sortBy-Attribute is wrong - I fiddled around a bit but no success. I'm thankful for help.</p>Nikel WeisTue, 26 Nov 2013 10:52:26 -0500https://answers.axonivy.com/questions/131/how-can-i-get-enable-sorting-on-a-datatableprimefacesHow to integrate custom PhaseListener in faces-config.xml?https://answers.axonivy.com/questions/117/how-to-integrate-custom-phaselistener-in-faces-config-xml<p>I want to implement a custom PhaseListener in my faces-config.xml like it is <a href="http://stackoverflow.com/questions/8388854/how-to-implement-a-phaselistener-which-runs-at-end-of-lifecycle">suggested</a> at stack overflow. So this is my faces-config.xml:</p> <pre><code>&lt;lifecycle&gt; &lt;phase-listener&gt;org.apache.myfaces.extensions.validator.core.startup.ExtValStartupListener&lt;/phase-listener&gt; &lt;phase-listener&gt;org.apache.myfaces.extensions.validator.beanval.startup.JSF2AwareBeanValidationStartupListener&lt;/phase-listener&gt; &lt;phase-listener&gt;org.apache.myfaces.extensions.validator.beanval.startup.BeanValidationStartupListener&lt;/phase-listener&gt; &lt;phase-listener&gt;de.azt.MyPhaseListener&lt;/phase-listener&gt; &lt;/lifecycle&gt; </code></pre> <p>And this is MyPhaseListener-Dummy: </p> <pre><code>public class MyPhaseListener implements PhaseListener { @Override public PhaseId getPhaseId() { return PhaseId.RENDER_RESPONSE; } @Override public void beforePhase(PhaseEvent event) { // Do your job here which should run right before the RENDER_RESPONSE. } @Override public void afterPhase(PhaseEvent event) { // Do your job here which should run right after the RENDER_RESPONSE. } } </code></pre> <p>But this approach leads the application server to crash:</p> <pre><code>HTTP Status 500 - serialFactory type Exception report message serialFactory description The server encountered an internal error that prevented it from fulfilling this request. exception javax.servlet.ServletException: serialFactory javax.faces.webapp.FacesServlet.service(FacesServlet.java:229) org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:79) ch.ivyteam.ivy.dialog.execution.jsf.controller.rest.IvyRestServiceFilter.doFilter(IvyRestServiceFilter.java:54) ch.ivyteam.ivy.dialog.execution.jsf.controller.IvyFacesInstanceFilter.filterAsSystem(IvyFacesInstanceFilter.java:104) ch.ivyteam.ivy.dialog.execution.jsf.controller.IvyFacesInstanceFilter.access$0(IvyFacesInstanceFilter.java:79) ch.ivyteam.ivy.dialog.execution.jsf.controller.IvyFacesInstanceFilter$1.call(IvyFacesInstanceFilter.java:55) ch.ivyteam.ivy.dialog.execution.jsf.controller.IvyFacesInstanceFilter$1.call(IvyFacesInstanceFilter.java:1) ch.ivyteam.ivy.security.internal.SecurityManager.executeAsSystem(SecurityManager.java:1425) </code></pre> <p>So how is it possible to implement a custom PhaseListener?</p>Nikel WeisFri, 22 Nov 2013 16:31:49 -0500https://answers.axonivy.com/questions/117/how-to-integrate-custom-phaselistener-in-faces-config-xmlconfigurationprimefacesVersion informations neededhttps://answers.axonivy.com/questions/103/version-informations-needed<p>A lot of questions are rather Primefaces specific than Xpert.ivy specific. In order to get proper support at StackOverflow or the PrimeFaces-Board, what can I answer on the questions: What PrimeFaces version, JSF implementation name/version and the Server name/version information?</p>Nikel WeisFri, 22 Nov 2013 08:57:30 -0500https://answers.axonivy.com/questions/103/version-informations-neededprimefacesHow to prevent tab switching on validation errors using p:tabView?https://answers.axonivy.com/questions/97/how-to-prevent-tab-switching-on-validation-errors-using-p-tabview<p>How can I prevent a tab switch using a p:tabView after a form validation on the second tab fails?</p>Nikel WeisThu, 21 Nov 2013 09:16:58 -0500https://answers.axonivy.com/questions/97/how-to-prevent-tab-switching-on-validation-errors-using-p-tabviewprimefacesHow to connect JScript, Logic and/or BackingBeans?https://answers.axonivy.com/questions/91/how-to-connect-jscript-logic-and-or-backingbeans<p>I still have difficulties to bring backing beans, logic and jscript together. What I figured out is, that we have <code>actionListener</code> or <code>listener</code> on the one hand (this enables us to start a method or an event in the dialog's logic or a backing bean), and on the other hand we have jscript events like <code>onclick</code>, <code>oncomplete</code> or <code>onTabShow</code>. </p> <p>So here is my first question: Are these assumptions correct?</p> <p>And here is my second question: When I want an event, method or a backing bean in the logic to be executed when a javascript-event is fired how can I do that?</p>Nikel WeisTue, 19 Nov 2013 11:31:44 -0500https://answers.axonivy.com/questions/91/how-to-connect-jscript-logic-and-or-backingbeanshtmluserdialogjavascriptXpert.ivy's Security Concepthttps://answers.axonivy.com/questions/54/xpert-ivy-s-security-concept<p>Is there a white paper or any other informations regarding the security concept of Xpert.ivy? Regarding security it was once stated that it would be best practice to put an IIS or Apache in front of the Ivy-Server. The Server Guide is pretyy quite on that topic just stating external security systems concerning the Active Directory. Are there more informations?</p> <p>I'm thankful for any assistance. </p> <p>Edit: I know that - generally speaking - it's the task of the application development team to care about security issues, but Xpert.ivy is using a modified Tomcat as server and a lot of tasks like the role and user management is also handled by Xpert.ivy.</p>Nikel WeisThu, 07 Nov 2013 09:41:07 -0500https://answers.axonivy.com/questions/54/xpert-ivy-s-security-conceptsecurityHow to parse a String to ivy xml-object?https://answers.axonivy.com/questions/31/how-to-parse-a-string-to-ivy-xml-object<p>I receive a string from an external java class which is an xml-file. How can I parse this to an ivy-xml object? (Xpert.ivy 4.3)</p>Nikel WeisFri, 18 Oct 2013 11:25:41 -0400https://answers.axonivy.com/questions/31/how-to-parse-a-string-to-ivy-xml-objectxmlHow to hand an occuring exception to an Ivy-Exception handler?https://answers.axonivy.com/questions/29/how-to-hand-an-occuring-exception-to-an-ivy-exception-handler<p>I want to handle exceptions occuring in an external java class. The class is called in a script step. Now I want to pass this to an Exception Start in the Process Model. Can I achive this?</p> <p>Script Step:</p> <pre><code> try { out.geoCodeResponse = geoCode.getXMLByGoogle(address); } catch (Exception e) { // Pass exception to exception start } </code></pre> <p>Thanks for any help!</p> <p>Edit: It just came accross my mind to set an ivy-variable error:Boolean and set a condition to choose a different process path in error case. But regardless this fact, is it possible to start an Ivy-Exception start from a try-catch-block?</p>Nikel WeisFri, 18 Oct 2013 11:01:42 -0400https://answers.axonivy.com/questions/29/how-to-hand-an-occuring-exception-to-an-ivy-exception-handlerjavaHook into global closing with "X" on the windowhttps://answers.axonivy.com/questions/434/hook-into-global-closing-with-x-on-the-window<p>I am looking for a possibility to hook me into the closing of a window when a user clicks on the "X" in the window. For example, to ask the user whether he wants to save his data. And if possible it would be extremely nice to give a veto to prevent the closing.</p>Nikel WeisTue, 03 Jan 2012 10:25:31 -0500https://answers.axonivy.com/questions/434/hook-into-global-closing-with-x-on-the-windowrichdialog