Questions asked by Adrian Imfeldhttps://answers.axonivy.com/questions/asked-by/8/adrian-imfeld/?type=rssQuestions asked by <a href="/users/8/adrian-imfeld" >Adrian Imfeld</a>enWed, 11 Dec 2019 09:41:15 -0500multiple exceptions lead to ivy:error:loophttps://answers.axonivy.com/questions/4269/multiple-exceptions-lead-to-ivy-error-loop<p>Hi there</p> <p>We get an "ivy:error:loop" exception by Ivy in a loop. In this loop, we send some ws calls in a Callable Sub. Possibles exceptions are not handled in the Callable Process, but are caught by a "Inscribe Error Boundary Event" on the Callable Sub Element. The loop-exception occurs when we receive an exception (ivy:error:webservice:exception) in this Callable Sub twice.</p> <p>From our point of view one task could easily receive more than one identical exception during its execution. Ivy should not send a loop-exception in this case.</p> <p>Why does Ivy react like that? Have we done something wrong?<br> Is there a solution or workaround for our problem?</p>Adrian ImfeldWed, 11 Dec 2019 09:41:15 -0500https://answers.axonivy.com/questions/4269/multiple-exceptions-lead-to-ivy-error-loopexceptionhandlingwebserviceloopHow to set multiple responsible roles for a process start requesthttps://answers.axonivy.com/questions/4151/how-to-set-multiple-responsible-roles-for-a-process-start-request<p>How can we set more than one role as "Responsible role" on a Request Start element on the Request tab. Users with different roles (not able to organize under one commen role tree node) should see a process in the portal and should be able to start it.</p> <p>My workaround at the moment is to define two different start elements, which are identical except the responsible role. It works, but... If one user holds both roles, he will see two identical processes.</p> <p>Thanks for help.</p>Adrian ImfeldThu, 07 Nov 2019 09:49:11 -0500https://answers.axonivy.com/questions/4151/how-to-set-multiple-responsible-roles-for-a-process-start-requestprocessrequestsecurityroleElasticsearch fail because auto-conversion changes String values into Datehttps://answers.axonivy.com/questions/3903/elasticsearch-fail-because-auto-conversion-changes-string-values-into-date<p>We get an error of the Elasticsearch by saving a BusinessObject over the ivy.repo with a field of type <code>Map&lt; String,String &gt;</code>.</p> <pre><code>Elasticsearch update index of document failed because of: {"root_cause":[{"type":"illegal_argument_exception","reason":"mapper [details.data.Value1] of different type, current_type [text], merged_type [date]"}],"type":"illegal_argument_exception","reason":"mapper [details.data.Value1] of different type, current_type [text], merged_type [date]"}</code></pre> <p>The problem ist clear. The field "details.data.Value1" is a date field and i try to store a String.</p> <p><strong>But</strong> the definition of our BusinessObject is different to that!<br> The field "data" of the "detail" object is defined as a <code>Map&lt; String,String &gt;</code>.<br> We get this error when we run the following code in an IvyScript (we used a helper class for Maps, because IvyScript is not able to handle double generics).</p> <pre><code>JobDetail detail = new JobDetail(); Helper helper = new Helper(); helper.setParam("Value1", (new Date()).toString()); detail.data = helper.getParams(); job.details.add(detail); detail = new JobDetail(); helper.setParam("Value1", "foo"); detail.data = helper.getParams(); job.details.add(detail);</code></pre> <p>Why does Elasticsearch change the given attribute to a date field, although we just fill in String values?<br> Furthermore we defined the value as a Map of Sting-String value pairs.<br> Is there a solution of this issue?</p> <p>We decided not to use JSON objects instead of our Map, because of the easy handling in further uses.</p>Adrian ImfeldWed, 31 Jul 2019 04:33:14 -0400https://answers.axonivy.com/questions/3903/elasticsearch-fail-because-auto-conversion-changes-string-values-into-datebusiness-dataelasticsearchivyscriptApache CXF DateTime Converter with different Timezonehttps://answers.axonivy.com/questions/3560/apache-cxf-datetime-converter-with-different-timezone<p>We have a simple WSDL which holds a datetime attribute. This attribute is converted correctly by the CXF library and holds the Ivy DateTime format in the generated ws class. When we pass a datetime into the ws call, the datetime is formatted as <code>2018-11-26T12:56:52+01:00</code> but the ws provider (in our case SAP) needs the datetime within the UTC timezone, like: <code>2018-11-26T12:56:52Z</code></p> <p>How can we change the format? Is there a simple way, for example to pass the timezone to the Ivy DateTime object? ...or pass a SimpleDateFormat object for the string formatting?</p>Adrian ImfeldMon, 26 Nov 2018 09:32:33 -0500https://answers.axonivy.com/questions/3560/apache-cxf-datetime-converter-with-different-timezonewebservicecxfHow to use content with contents in ScriptSteps?https://answers.axonivy.com/questions/1415/how-to-use-content-with-contents-in-scriptsteps<p>I have a Label (cms content) which holds other labels. The content of my label looks like that:</p> <pre><code>&lt;%=ivy.cms.co("/Labels/Labels/username")%&gt; or &lt;%=ivy.cms.co("/Labels/Labels/password")%&gt; is incorrect. </code></pre> <p>It works fine in JSF UI's with this code:</p> <pre><code>"#{ivy.cms.co('/Labels/Messages/loginFailedMsg')}" </code></pre> <p>But if I fill a process variable over a ScriptStep like this...</p> <pre><code>out.message = ivy.cms.co("/Labels/Messages/loginFailedMsg"); </code></pre> <p>... the integrated contents are not rendered.</p> <p>Is there a way to get the fully rendered label in a ScriptStep?</p>Adrian ImfeldTue, 28 Jul 2015 11:36:32 -0400https://answers.axonivy.com/questions/1415/how-to-use-content-with-contents-in-scriptstepsivyscriptcmsHow to map AD group to Ivy role?https://answers.axonivy.com/questions/1404/how-to-map-ad-group-to-ivy-role<p>We like to manage the rights for our ivy applications over the Microsoft Active Directory. According the AD groups, ivy roles should automatically added to the ivy user. We have in mind to build some technical processes to do that. But we have some questions...<br> <br><b>Is it possible to read (lower) OU's of a user?</b><br> If we have the OU "ivy" to import all users and there is a OU "admin" under the OU "ivy", can we find out which users are in the OU "admin"? How can we get this information. Maybe some how like reading AD attributes?<br> <br><b>Is it possible to listen to the LDAP synchronisation of the ivy server?</b><br> Every times when the user synchronisation is finished, our code should be executed to add specified ivy roles to the user based on the AD OU's.</p> <p>Thank you for your support</p>Adrian ImfeldThu, 23 Jul 2015 12:24:42 -0400https://answers.axonivy.com/questions/1404/how-to-map-ad-group-to-ivy-rolesecurityactivedirectoryuserldapBIRT report extension for Axon.ivy 5.1https://answers.axonivy.com/questions/980/birt-report-extension-for-axon-ivy-5-1<p>Is there a BIRT report extension for Axon.ivy 5.1?</p> <p>I tried the extension for Ivy 5.0 and get the following error:</p> <pre><code>java.io.FileNotFoundException: configuration\extensions\birt.properties (Das System kann die angegebene Datei nicht finden) </code></pre> <p>Could someone help me?</p>Adrian ImfeldMon, 29 Sep 2014 11:25:01 -0400https://answers.axonivy.com/questions/980/birt-report-extension-for-axon-ivy-5-1designerbirtHow does an EventBean act in a clusterhttps://answers.axonivy.com/questions/720/how-does-an-eventbean-act-in-a-cluster<p>We do some broadcast calls from plain Java, with an self written EventSubscriber for Event Start elements. This EventSubscriber catches an identifier and works fine in the Designer. It looks to works fine on the server as well. The EventSubscriber extends <code>AbstractProcessStartEventBean</code> which extends <code>IProcessStartEventBean</code>.</p> <p>Is this also works correctly when we run the server as a cluster? We expect that the event is starting just ones.</p>Adrian ImfeldWed, 28 May 2014 14:27:41 -0400https://answers.axonivy.com/questions/720/how-does-an-eventbean-act-in-a-clusterserverHow to work with java.util.Date in IvyScript-Step without auto initializationhttps://answers.axonivy.com/questions/52/how-to-work-with-java-util-date-in-ivyscript-step-without-auto-initialization<p>In an IvyScriptStep variables are auto initialized as soon as they are accessed. The following code will log "bad":</p> <pre><code>java.util.Date date = null; if ( date!=null) { ivy.log.info("bad"); } else { ivy.log.info("good"); } </code></pre> <p>It looks like the object "date" will never be a java.util.Date, it is an IvyDate. There is also no chance to import java.util.Date because of a conflict.</p>Adrian ImfeldWed, 06 Nov 2013 14:42:43 -0500https://answers.axonivy.com/questions/52/how-to-work-with-java-util-date-in-ivyscript-step-without-auto-initializationivyscriptHow to set the maximum number of records per page in a SmartTable?https://answers.axonivy.com/questions/361/how-to-set-the-maximum-number-of-records-per-page-in-a-smarttable<p>Is there a possibility to configure the maximum number of records per page. Is it possible somehow?</p>Adrian ImfeldWed, 30 Jun 2010 08:51:16 -0400https://answers.axonivy.com/questions/361/how-to-set-the-maximum-number-of-records-per-page-in-a-smarttableivy3