Questions Tagged With axon.ivyhttps://answers.axonivy.com/tags/axon.ivy/?type=rss&user=trungdvquestions tagged <span class="tag">axon.ivy</span>enMon, 27 Mar 2017 11:33:32 -0400how to get root folder of project where user start ?https://answers.axonivy.com/questions/2538/how-to-get-root-folder-of-project-where-user-start<p>hi all</p> <p>i have a project A with a startlink, this project depend on project B (B contain some commons ivy component). Now user start page by that startlink, it will open a page which use come commons component from B)</p> <p>Now i need to get root folder of project A, i refer this <a href="http://answers.axonivy.com/questions/2143/how-to-get-webcontent-folder-in-ivy-project">post</a> but it just work fine if it run in project A, when i call it on commons component (project B) then it return the folder of B.</p> <p>My question is: is there any api to get root folder (maybe webcontent) of project where user start the startlink (like project A in above example)?</p> <p>Thanks</p>trungdvMon, 27 Mar 2017 11:33:32 -0400https://answers.axonivy.com/questions/2538/how-to-get-root-folder-of-project-where-user-startaxon.ivyCan we send Encrypted Emails in ivy?https://answers.axonivy.com/questions/2166/can-we-send-encrypted-emails-in-ivy<p>Hi all The question is the same with the title. i would like to encrypt email before sending, i've tried with jana mail but just want to ask whether we have any support from ivy mail or not?</p> <p>Reference: <a href="http://stackoverflow.com/questions/300334/how-to-send-encrypted-emails-programmatically-from-an-automated-process">How to Send Encrypted Emails Programmatically (from an automated process)</a></p> <p>Thanks</p>trungdvTue, 08 Nov 2016 03:48:42 -0500https://answers.axonivy.com/questions/2166/can-we-send-encrypted-emails-in-ivyaxon.ivyemailWhat does "@Ref-x" mean in BusinessDataRepository (persistence) ?https://answers.axonivy.com/questions/2155/what-does-ref-x-mean-in-businessdatarepository-persistence<p>Hi ivyteam</p> <p>Here i have an example about record on Ivy database (it's JSON) <img alt="alt text" src="http://answers.axonivy.com/upfiles/Untitled_C81Puuf.png"></p> <p>the <code>@id</code> is generated id of persistence but what is the meaning behind of its value? ex: <code>$Ref-0</code>, <code>$Ref-1</code>,... Thanks</p>trungdvWed, 02 Nov 2016 08:53:59 -0400https://answers.axonivy.com/questions/2155/what-does-ref-x-mean-in-businessdatarepository-persistenceaxon.ivypersistenceHow to get result after CRUD on Database element?https://answers.axonivy.com/questions/2150/how-to-get-result-after-crud-on-database-element<p>Hi all In my situation, i use a Database Element to write data like below picture. And then now i want to know whether my insert query is sucess or not in Code tab. Or in general way, i need to know the status of CRUD in that tab. <img alt="alt text" src="http://answers.axonivy.com/upfiles/db.png"></p> <p>Does anyone know? Thanks</p>trungdvFri, 28 Oct 2016 11:01:16 -0400https://answers.axonivy.com/questions/2150/how-to-get-result-after-crud-on-database-elementaxon.ivyHow to get webcontent folder in ivy projecthttps://answers.axonivy.com/questions/2143/how-to-get-webcontent-folder-in-ivy-project<p>Hi all</p> <p>Sometime i want to lookup some resources in webcontent folder of current ivy model. then i com up with this code snippet. </p> <pre><code>public static String getFolderInWebContent(String folderName) throws Exception { String rootFolder = getProjectRootFolder() + "/webContent/"; if (folderName != null &amp;&amp; !folderName.isEmpty()) { if (!folderName.endsWith("/") &amp;&amp; !folderName.endsWith("\\")) { folderName = folderName + "/"; } File f = new File(rootFolder + folderName); if (f.isDirectory()) { return f.getAbsolutePath(); } } return rootFolder; } public static String getProjectRootFolder() throws Exception { return SecurityManagerFactory.getSecurityManager().executeAsSystem( new Callable&lt;String&gt;() { @Override public String call() throws Exception { return Ivy.request().getProcessModel() .getReleasedProcessModelVersion() .getProjectDirectory(); } }); } </code></pre> <p>I hope it's helpful for someone who need it or if you have a better solution, just drop here. i also want to extend my knowledge about ivy.</p> <p>Thanks</p>trungdvThu, 27 Oct 2016 10:38:45 -0400https://answers.axonivy.com/questions/2143/how-to-get-webcontent-folder-in-ivy-projectaxon.ivyCan i redirect to another startlink by ivy API?https://answers.axonivy.com/questions/2124/can-i-redirect-to-another-startlink-by-ivy-api<p>Hi all I have a startlink on a test page, when user trigger that link, i want to redirect to another startlink in other project (because in that project we have to hide all startlink). I saw we can use </p> <pre><code>FacesContext.getCurrentInstance().getExternalContext().redirect("startlink url"); </code></pre> <p>but in case i don't open any HtmlDialog, FacesContext will not exist. Is there any other ivy API could help me? for the moment, i need to open new HTML dialog then when i click to button, it will redirect to other page by FacesContext.</p> <p>Thanks</p>trungdvFri, 21 Oct 2016 04:08:27 -0400https://answers.axonivy.com/questions/2124/can-i-redirect-to-another-startlink-by-ivy-apiaxon.ivyWhat is the meaning behind of "ivy" in axon ivy ?https://answers.axonivy.com/questions/2097/what-is-the-meaning-behind-of-ivy-in-axon-ivy<p>Hi all i've worked with ivy about 4 years and nĘ” i want to know the meaning behind of that word, can someone explains to me? is there any special meaning or reason for that? Thanks (sorry for this stupid question) :D</p>trungdvTue, 11 Oct 2016 10:26:24 -0400https://answers.axonivy.com/questions/2097/what-is-the-meaning-behind-of-ivy-in-axon-ivyaxon.ivyHow to evaluate cms with parameter on xhtmlhttps://answers.axonivy.com/questions/1964/how-to-evaluate-cms-with-parameter-on-xhtml<p>Hi all</p> <p>I'm using jsf in ivy and normally i use directly API from ivy to get cms in xhtml file, ex:</p> <pre><code> &lt;p:outputLabel value="#{ivy.cms.co('/ch/axonivy/Label/EntityStep/Contact/email')}"/&gt; </code></pre> <p>now in my cms, it has placeholder like <strong>Input email ex {0}</strong> {0} will be replaced by param and i can do it easily on ivy script/java (using API from ivy) but i can't use that api on xhtml page</p> <pre><code> &lt;p:outputLabel value="#{ivy.cms.co('/ch/axonivy/Label/EntityStep/Contact/email', 'someone@google.com')}"/&gt; </code></pre> <p>Does anyone know?</p>trungdvMon, 15 Aug 2016 09:50:51 -0400https://answers.axonivy.com/questions/1964/how-to-evaluate-cms-with-parameter-on-xhtmlaxon.ivycmsDoes Ivy Task support to create reminder task?https://answers.axonivy.com/questions/1939/does-ivy-task-support-to-create-reminder-task<p>Hi all</p> <p>I have a requirement like: When user start a process then upload some document, the Document Cheking task will be create for the Superior role and it can be see in tasklist (use API from ivy to load task).</p> <p>If after x Day, that task is not started by super role (may be he is very busy or he's in long holiday), so system will automatically create another task for HR to remind Superior role that he should perform that task (HR will remind superior by fone for example) and both tasks (Document Checking and Reminder) still can be opened. it would mean we can't use Expire time or Delay time in this case because just one task will be available at a time</p> <p>When Document Checking is finished, the reminder will be destroy, i intend to use boundary signal event to do.</p> <p>So does ivy task support this case or is there any api from ivy that we can use?</p> <p>the process look like this:</p> <p><img alt="alt text" src="http://answers.axonivy.com/upfiles/Untitled_6Ix0VUN.png"></p> <p>Thanks in advance</p>trungdvThu, 04 Aug 2016 10:45:19 -0400https://answers.axonivy.com/questions/1939/does-ivy-task-support-to-create-reminder-taskaxon.ivyHow can we use global variable in Automatic Process Element?https://answers.axonivy.com/questions/1938/how-can-we-use-global-variable-in-automatic-process-element<p>Hi all</p> <p>Now i have a automatic process in our project then the customer want to configure the amount of time that process can start. i intend to use global variable but i don't know how to put it on that element. </p> <p>Anyone know, please help</p> <p>Thanks a lot <img alt="alt text" src="http://answers.axonivy.com/upfiles/Untitled.png"></p>trungdvThu, 04 Aug 2016 10:20:35 -0400https://answers.axonivy.com/questions/1938/how-can-we-use-global-variable-in-automatic-process-elementaxon.ivyIs there any API to throw exception programmatically in ivyhttps://answers.axonivy.com/questions/1928/is-there-any-api-to-throw-exception-programmatically-in-ivy<p>Hi all</p> <p>Some months ago i heard about the new exception handling mechanism which has been introduces by ivy team. Somehow ivy now can care about exception in BPM, we just need to use some special elements to throw and catch error code. And now i'm trying to use it in our project. Well, now may question is: beside of those special elements, is there any ivy API to throw exception with defined error code in java? Thanks in advance</p>trungdvWed, 03 Aug 2016 05:07:24 -0400https://answers.axonivy.com/questions/1928/is-there-any-api-to-throw-exception-programmatically-in-ivyaxon.ivyHow 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.ivysignals