Questions Tagged With taskhttps://answers.axonivy.com/tags/task/?type=rssquestions tagged <span class="tag">task</span>enThu, 05 Dec 2019 10:48:10 -0500Park Task not saving datahttps://answers.axonivy.com/questions/4239/park-task-not-saving-data<p>Basically, the Park Task feature is as far as I know intended to let the user continue his work later. However, I'm currently facing the issue that none of the data is persisted, when I park the task in the Designer (7.2.1).</p> <p>I'm having one logic step, called <code>save</code> which contains the following script steps:</p> <pre><code>ivy.session.parkTask(ivy.task); for(int i = 0; i&lt;in.data.filesOnDisk.size(); i++) { FileHelper.deleteFolder(in.data.filesOnDisk.get(i).getAbsolutePath()); } </code></pre> <p>And a simple faces redirect to the portal start. Is there any better way to save/persist data while being in a task without using another database as stated in <a href="https://answers.axonivy.com/questions/1017/save-task-data-while-in-task">this topic</a>?</p> <p>Did I misunderstand the function of <code>parkTask</code>?</p>maio290Thu, 05 Dec 2019 10:48:10 -0500https://answers.axonivy.com/questions/4239/park-task-not-saving-datataskpersistenceRedirect to Taskhttps://answers.axonivy.com/questions/4223/redirect-to-task<p>Hi all,</p> <p>Is it possible another web to redirect to a task in axon ivy? What I mean is, I have start task url generated (<a href="http://localhost:8081/ivy/pro/designer/Project$1/16E8DF16E2CAE91C/16E8DF16E2CAE91C-f2/TaskA.iot?taskId=7)">http://localhost:8081/ivy/pro/designer/Project$1/16E8DF16E2CAE91C/16E8DF16E2CAE91C-f2/TaskA.iot?taskId=7)</a> When the external web app redirects to this link what I get is : Dialog instance with id ...is not available any more. Just the link itself works perfectly. Also, can we pass a parameter in the task start url (?taskId=123&amp;parameter=something)? I know that this is possible where we start a process but is it possible to do so for a task?</p> <p>Thanks!</p> <p>Alex</p>a_v_aThu, 28 Nov 2019 04:03:49 -0500https://answers.axonivy.com/questions/4223/redirect-to-taskurltaskCannot modify the length of ivy task name in the databasehttps://answers.axonivy.com/questions/4132/cannot-modify-the-length-of-ivy-task-name-in-the-database<p>Hi there. </p> <p>Today, I have a problem with the name of a task. The name of the task is over 200 characters and exceeds the capacity the whole task name can be saved to the database. </p> <p>My question is how can I change the length of the Ivy task name in the database? I want to make it unlimited. </p> <p>Thank you</p>ntctuyenSat, 02 Nov 2019 03:34:04 -0400https://answers.axonivy.com/questions/4132/cannot-modify-the-length-of-ivy-task-name-in-the-databasetaskivydatabaseIvy task with start link Ivy is not persisted immediatelyhttps://answers.axonivy.com/questions/4112/ivy-task-with-start-link-ivy-is-not-persisted-immediately<p>Dear Ivy team.</p> <p>At the moment, we're facing the problem with start link ivy is marked as <strong>Persist task on creation</strong> come with some additional data what was set in <strong>customvarcharfield</strong>.</p> <p>We create a trigger in our ivy's database to listen to any changes in <code>iwa_task</code> table. We saw that whenever a user starts that ivy link. ivy will insert a new record in table <strong>iwa_task</strong> with a <em>taskid</em> but the value for <code>customvarchar1 is empty</code>, very quickly after that, ivy also performs another update on the same task to update data for customvarchar. After 2 updates in the iwa_task table, we have the correct data with a task that is created come with customvarcharfield.</p> <p>It works pretty well for single user because the delay time between 2 updates is very short and unnoticeable. But when there are many users are working at the same time, we got the problem. Because each user access the Portal's tasklist at the same time, so they will query the existing tasks in the system. But under some unluckily moment, the task is created (at the first stage without customvarchar) is queried and return to other user's results. Without customvarchar means the task data is not displayed properly.</p> <p>I just wonder is there any way to make "Persist task on creation" is persisted only once with full of data instead of creating an empty task and update data later?</p> <p>Thank in advanced.</p>hieulamFri, 18 Oct 2019 00:27:09 -0400https://answers.axonivy.com/questions/4112/ivy-task-with-start-link-ivy-is-not-persisted-immediatelytaskivyComplete Task from RESThttps://answers.axonivy.com/questions/4077/complete-task-from-rest<p>Hi Ivy Team,</p> <p>How to complete a task from REST service in Axon.Ivy ?</p> <p>So, far I saw that I can do .destroy() but it doesn`t feel the right, I believe that there will be some side effects </p> <p>or</p> <p>.setActivator(ivy.session.getSecurityContext().getSystemUser()) but this way I`m loosing the history who was the assignee of the task</p> <p>Any other options ?</p> <p>Maybe to do HTTP call to the end-point /TaskA.iot?taskId=7</p> <p>My goal is to build REST API that can manage the Axon.Ivy tasks from external system.</p> <p>Best Regards, Yordan</p>Stelt0Mon, 07 Oct 2019 09:40:24 -0400https://answers.axonivy.com/questions/4077/complete-task-from-restapijavaresttaskWhere do the */*/inject.ivp tasks come from?https://answers.axonivy.com/questions/3925/where-do-the-inject-ivp-tasks-come-from<p>Hi there </p> <p>I recently checked our task database and I found out, that there is a huge number of tasks having a request path similar to these: </p> <pre><code>137869A7988738D3/137869A7988738D3-f0/inject.ivp 14C5C59BB225874A/14C5C59BB225874A-f7/inject.ivp ... </code></pre> <p>Does anybody have a clue where they come from?</p> <p>Thanks and cheers, Daniel </p>DanielGauchThu, 22 Aug 2019 11:45:18 -0400https://answers.axonivy.com/questions/3925/where-do-the-inject-ivp-tasks-come-fromtasksystemdbIvy 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-timeouteventtaskivyworkflowDelayed Task and Expiry Tasks timing is not correct if the interval is smaller 60 secondshttps://answers.axonivy.com/questions/3744/delayed-task-and-expiry-tasks-timing-is-not-correct-if-the-interval-is-smaller-60-seconds<p>Hi Axon.ivy Team,</p> <p>In our project, we have several use cases that we would like to use the Delayed Tasks or Expiry Tasks. Depends on the business needs, our delayed or expiration duration <strong>may be 30 seconds or less</strong>.</p> <p>However, we discovered that the duration <strong>does not work</strong> if it is smaller than 60 seconds. I had done our homework a little bit and discovered that the <code>WorkflowJob</code> which was the main module used to resolve expired or delayed tasks is scheduled to run periodically on every 60 seconds. This was done in <code>WorkflowManager</code>.</p> <p>I assumed this was done <em>by design</em> but it took me by surprise because I could not find anywhere mentioning this limitation. The interval, 60 seconds, is hardcoded and is not configurable like the <code>SystemTask.SearchJob.Interval</code>.</p> <p>Is there any recommended ways to overcome this limitation?</p> <p><strong>UPDATE</strong></p> <p>In our system, we want to communicate to a 3rd party system, namely ABC, via its RESTful API.</p> <ul> <li>The process starts when a User triggers a designated action on the UI. We then call the ABC's API to initiate a process on their system.</li> <li>Our system then have to poll ABC's API for result <strong>asynchronously</strong>.</li> <li>The ABC API requires that we have to poll for result at least after 30 seconds from the time the first request has been sent.</li> <li>We want to have at max 3 attempts to call ABC's API for checking the result. Each time will have an additional delay of 10 seconds.</li> <li>At the same time, the User UI may be also polling for the result. It is not required that they have to keep the UI open.</li> </ul> <p>Having the above requirements, we are using Signal to trigger the polling to ABC's API asynchronously. The Signal process makes uses of SYSTEM TaskElement whose DelayDuration set to <code>30S</code>. For triggering a retry, the process itself then send a new Signal with an additional delay duration.</p> <p>What would be your suggestion to implement such a use case then?</p> <p>Bump this up!</p> <p>Regard</p> <p>Jack</p>vagabondMon, 25 Mar 2019 06:31:06 -0400https://answers.axonivy.com/questions/3744/delayed-task-and-expiry-tasks-timing-is-not-correct-if-the-interval-is-smaller-60-secondstaskworkflowHow to send user defined text in TASK DESCRIPTIONhttps://answers.axonivy.com/questions/3509/how-to-send-user-defined-text-in-task-description<p><img alt="alt text" src="https://answers.axonivy.com/upfiles/Hardcopy_1_-_Task_List_zkt09Yb.jpg"><img alt="alt text" src="https://answers.axonivy.com/upfiles/Hardcopy_2_-_TASK_Mail.jpg">Dear all,</p> <p>I have the following problem: A HTML-formatted text in the field TASK DESCRIPTION is displayed correct within the task list. Please see the blue colored in the hardcopy.</p> <p>But the HTML-formatted text is not shown correct in the Assing-New Task-Mail.</p> <p>See the red colored in the second hardcopy.</p> <p>What can I do to create "well-shown well-formatted" Task creation mails.</p> <p>Thank you in advance.</p> <p>Best regards</p> <p>Dieter</p> <p>Sorry I don't have the right to upload a pdf with the hardcopies.</p>Dieter StaudtThu, 25 Oct 2018 11:10:34 -0400https://answers.axonivy.com/questions/3509/how-to-send-user-defined-text-in-task-descriptiontaskemailSocial intranet and/or social collaborationhttps://answers.axonivy.com/questions/3484/social-intranet-and-or-social-collaboration<p>I'm interested in the platform but I was wondering whether you support (or plan to support) social intranet and/or social collaboration features.</p>vdeprojectsThu, 18 Oct 2018 05:45:56 -0400https://answers.axonivy.com/questions/3484/social-intranet-and-or-social-collaborationtaskAxon Ivy cannot find any documentation about task statehttps://answers.axonivy.com/questions/3464/axon-ivy-cannot-find-any-documentation-about-task-state<p>In my database I've tasks state starting with number 1 to 7, maybe more but 7 is the highest state I've.</p> <p>In the documentation of Axon Ivy I cannot find any information about the task state and their meaning. I just found some workflow task information but they seem not related with the Axon Ivy task state. Or m I wrong?</p> <p>Because in the documentation they reefer to some state like Done, Resumed, ... : <a href="https://developer.axonivy.com/doc/latest/DesignerGuideHtml/ivy.concepts.html#ivy-wf-states">https://developer.axonivy.com/doc/latest/DesignerGuideHtml/ivy.concepts.html#ivy-wf-states</a></p> <p>But nothing about numbers, and I know in old Axon Ivy Version there was state like destroyed for example who are not listed in this documentation.</p> <p>So where can I find a good documentation about the task states in Axon Ivy Engine/Designer ???</p> <p>And what are those task state who are documented into the chapter referenced? Is there two type of task now?</p> <p>Thanks a lot for the help, Neo</p>AxonIvyDeveloperTue, 02 Oct 2018 03:34:35 -0400https://answers.axonivy.com/questions/3464/axon-ivy-cannot-find-any-documentation-about-task-statetaskHow to set Additional property for taskhttps://answers.axonivy.com/questions/3424/how-to-set-additional-property-for-task<p>Hi ivyteam</p> <p>When i use java code, i can set additional property via this api:</p> <pre><code>task.setAdditionalProperty(name, value); </code></pre> <p>but how can i set those properties via taskswitch gateway/Usertask<img alt="alt text" src="https://answers.axonivy.com/upfiles/Untitled_9KJtgkh.png"></p> <p>Thers is no GUI to set it ( i don't want to use Custom fields because it's full now)</p> <p>Thanks</p>trungdvWed, 19 Sep 2018 00:23:01 -0400https://answers.axonivy.com/questions/3424/how-to-set-additional-property-for-taskivy7xtaskTask 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 can I set a Task with dynamic name by Ivy scripthttps://answers.axonivy.com/questions/3359/how-can-i-set-a-task-with-dynamic-name-by-ivy-script<p>Hi there. Today, I have a problem with the name of a task. The first time, when I create a task with a name <strong>ABC</strong>, after do something, it changes <strong>XYZ</strong>. I changed the task name by Ivy script, like this:</p> <p><img alt="alt text" src="https://answers.axonivy.com/upfiles/dasdasdas.png"></p> <p>My problem is now, the task name can't be changed reply on the locale. My question is <strong><em>How can I use cms to set for a dynamic name for Task and then let it resolves by CMS?</em></strong></p> <p>Thanks so much.</p>TuyenFri, 20 Jul 2018 06:33:52 -0400https://answers.axonivy.com/questions/3359/how-can-i-set-a-task-with-dynamic-name-by-ivy-scriptivyscripttaskcmsWhy do my tasks disappear?https://answers.axonivy.com/questions/3313/why-do-my-tasks-disappear<p>Sometimes it seems that tasks disappear from my task list. E.g. I have multiple tasks on my task list, I finish one, return to my task list and then one or more of the other tasks are gone.</p> <p>How can this happen?</p>SupportIvyTeamWed, 06 Jun 2018 09:45:49 -0400https://answers.axonivy.com/questions/3313/why-do-my-tasks-disappeartaskstaskIvy TaskState change listenerhttps://answers.axonivy.com/questions/3062/ivy-taskstate-change-listener<p>Hi all,</p> <p>In our application, we need to detect when task state is changed. For example when user login to Ivy Admin UI and delete a user, tasks belong to that user will change state to UNASSIGNED.</p> <p>We tried to use IWorkflowListener but it didn’t work .</p> <p>In Ivy, is there any way to listen to this event?</p> <p>Thanks a lot.</p>ToanLCTue, 09 Jan 2018 02:39:17 -0500https://answers.axonivy.com/questions/3062/ivy-taskstate-change-listenertasktask-stateaxonivy6.3When does the state of task change from resumed to suspended?https://answers.axonivy.com/questions/2910/when-does-the-state-of-task-change-from-resumed-to-suspended<p>For example, a user is working on a task and closes the windows, when does the state of task change from resumed to suspended?</p>SupportIvyTeamWed, 11 Oct 2017 10:22:25 -0400https://answers.axonivy.com/questions/2910/when-does-the-state-of-task-change-from-resumed-to-suspendedtasktask-stateCleanup of cases (and tasks) via an IVY Process causes to Database Deadlockshttps://answers.axonivy.com/questions/2683/cleanup-of-cases-and-tasks-via-an-ivy-process-causes-to-database-deadlocks<p>I refer to the question # “478 - How to cleanup old Cases / Tasks?” with my questions:</p> <ol> <li> <p>“Triggers in the XpertIvySystemDatabase” Among other triggers there is a trigger when deleting cases and when deleting tasks. Because the installing and setup of IVY was done many years ago by a former colleague so my first question is: Were all triggers delivered by AXONIVY?</p> </li> <li> <p>“Cleanup of old Cases and Tasks” We use an timer triggered Ivy Process for the Cleanup with the sql-statement for deleting finished cases: “DELETE FROM IWA_Case WHERE DATEDIFF(dd, EndTimestamp, GETDATE()) &gt; in.TimestampString.</p> </li> </ol> <p>The Timestampstring contains the number of days the finished cases will be stored.</p> <p>For example: “DELETE FROM IWA_Case WHERE DATEDIFF(dd, EndTimestamp, GETDATE()) &gt; 7” will delete all finished cases older than 7 days.</p> <p>As mentioned in my first question, all Delete-Statements in the CASE-DELETE-Trigger and all the nested Delete-Statements in the TASK-DELETE-Trigger will be executed automatically.</p> <p>This causes to Database-Deadlocks – see one Message of our Nagios tool:</p> <p>5 deadlocks detected on LUXDB004</p> <pre><code>spid status loginame hostname blk open_tran dbname cmd waittype waittime last_batch SQLStatement 66 suspended sa_ivy LUXAS004 0 2 IvyDb DELETE 0044 6 Jun 6 2017 08:58:20:460PM DELETE IWA_TaskData FROM IWA_TaskData, deleted WHERE IWA_TaskData.TaskId = deleted.TaskId \n \n 66 suspended LUXAS004 0 0 IvyDb DELETE 00bb 76873 Jun 6 2017 08:58:20:460PM DELETE IWA_TaskData FROM IWA_TaskData, deleted WHERE IWA_TaskData.TaskId = deleted.TaskId \n \n 66 suspended LUXAS004 0 0 IvyDb DELETE 00bb 71822 Jun 6 2017 08:58:20:460PM DELETE IWA_TaskData FROM IWA_TaskData, deleted WHERE IWA_TaskData.TaskId = deleted.TaskId \n \n 66 suspended LUXAS004 0 0 IvyDb DELETE 00bb 49495 Jun 6 2017 08:58:20:460PM DELETE IWA_TaskData FROM IWA_TaskData, deleted WHERE IWA_TaskData.TaskId = deleted.TaskId \n \n 66 suspended LUXAS004 0 0 IvyDb DELETE 00bb 55455 Jun 6 2017 08:58:20:460PM DELETE IWA_TaskData FROM IWA_TaskData, deleted WHERE IWA_TaskData.TaskId = deleted.TaskId \n \n </code></pre> <p>What is wrong? What must we do to avoid this deadlocks?</p> <p>Thanks in advance. Dieter</p>Dieter StaudtThu, 08 Jun 2017 07:34:33 -0400https://answers.axonivy.com/questions/2683/cleanup-of-cases-and-tasks-via-an-ivy-process-causes-to-database-deadlockscasetasksystemdbivyHow to get url for Task in Emailhttps://answers.axonivy.com/questions/2571/how-to-get-url-for-task-in-email<p>Hello Ivy Team,</p> <p>I`m building a process for overriding the default email notifications as described here: <a href="http://developer.axonivy.com/doc/latest/EngineGuideHtml/administration.html#administration-applicationdefaults">http://developer.axonivy.com/doc/latest/EngineGuideHtml/administration.html#administration-applicationdefaults</a></p> <p>I have a problem to build an URL to the task.</p> <p>I`m trying this ways, but no luck:</p> <pre><code>in.task = ivy.wf.findTask(in.notificationTaskId); in.taskUrl = ivy.html.taskstartref(in.task); in.taskUrl = ivy.var.FQDN + in.task.getFullRequestPath() + "?taskId=" + in.notificationTaskId.toString(); </code></pre> <p>the URL is valid but the Id of the task is different than in the Task List view.</p> <p>I`m using version 6.4</p> <p>Am I doing something wrong or this is a bug in this version ? p.s. it does not work bot on the Designer and on the Server</p> <p>Best Regards, Yordan</p>Stelt0Thu, 06 Apr 2017 08:30:18 -0400https://answers.axonivy.com/questions/2571/how-to-get-url-for-task-in-emailurltaskemailHow to avoid the Error Http Status Code 409?https://answers.axonivy.com/questions/2427/how-to-avoid-the-error-http-status-code-409<p>Scenario:</p> <ol> <li>user1 authenticates and starts a task;</li> <li>Then, user1 closes the browser window with the task open;</li> <li>Finally, authenticates again and try to do the task.</li> </ol> <p>Then, it throw the Error: "Error Http Status Code 409", ConflictRequestException: "You cannot work on the task '305 - User 1 - Task 1 - ' with the identifier '41' because the user 'user1' is currently working on it.". </p> <p>The simulation doesn't start before the error, so I am wondering if it could be just a configuration on Axon Ivy. My Question is <strong>How to avoid the Error Http Status Code 409?</strong> </p> <p>Any help is appreciated.</p> <p>Notes: </p> <ul> <li>In my user application, the tasks are showing using the approach explained in <a href="http://answers.axonivy.com/questions/2410/findworktasks-never-returns-tasks-in-taskstate-resumed-state">findWorkTasks() never returns tasks in TaskState.RESUMED state</a>;</li> <li>Since it's not reliable in all browsers, I am avoiding to handle the window closing: <a href="http://answers.axonivy.com/questions/2406/detecting-when-the-user-closes-the-window-or-tab-of-the-browser-in-a-html-dialog">Detecting when the user closes the window or tab of the browser in a Html Dialog</a>;</li> <li>It seems that the Portal handles the action differently for RESUMED and SUSPENDED tasks, that's my plan B;</li> <li>Engine Version 6.0.5;</li> </ul>Jailson BritoTue, 07 Feb 2017 18:32:50 -0500https://answers.axonivy.com/questions/2427/how-to-avoid-the-error-http-status-code-409tasklisterror-handlingconfigurationtaskQuery Task's Business - Task stagehttps://answers.axonivy.com/questions/2419/query-task-s-business-task-stage<p>In the "Inscribe Task Switch Event" under tab "Tasks" there is a tab "Business". The first two fields are labeled "Task stage".<br> Is there a Pulic API to query these two fields?</p>rhorberFri, 03 Feb 2017 08:30:42 -0500https://answers.axonivy.com/questions/2419/query-task-s-business-task-stagetasktask-queryStore Data in a Taskhttps://answers.axonivy.com/questions/2415/store-data-in-a-task<p>Hi guys</p> <p>I have a question depending value handling on a task. </p> <p>I have following case:</p> <p>I've started a task and a view opens with a lot of attributes. I don't have actually all information to fill all of the fields on it, so I want already to fill the data I know and close the window. After I got the Information I want to restart the task and see the already filled fields and add the further fields I couldnt fill before. </p> <p>My question is now, how can I store the data inside a task without complete it? I don't actually want to use a database.</p> <p>Thanks for your help.</p> <p>Regards, Dani</p>dharlachThu, 02 Feb 2017 13:56:21 -0500https://answers.axonivy.com/questions/2415/store-data-in-a-tasktaskDetecting when the user closes the window or tab of the browser in a Html Dialoghttps://answers.axonivy.com/questions/2406/detecting-when-the-user-closes-the-window-or-tab-of-the-browser-in-a-html-dialog<p>Hello! I have the following scenario:</p> <ol> <li>User goes to the their Personal Task List;</li> <li>There's 1 task;</li> <li>User closes the window or tab in the browser;</li> <li>User comes back in 5 minutes and goes to their Personal Task List;</li> <li>The task is gone;</li> <li>After 30 minutes, the user refreshes the page;</li> <li>The task is back;</li> </ol> <p><strong>Question 1.</strong> I understand that since the user started to work on that task (step 2), it changed from SUSPENDED to RUNNING, and other users are not able to see that task in the meantime. I don't understand why even the user that is working on that task, can't see the task in the Personal Task List.</p> <p><strong>Question 2.</strong> Using Html Dialog, How to detect when the user change the context on the browser, to bind it to an event in the Logic? For example, if the user closes the tab/window, then it would fire a process to change the task to SUSPENDED again.</p> <p>I found old answers but they don't seem to be the exact scenario:</p> <ul> <li> <p><a href="http://answers.axonivy.com/questions/434/hook-into-global-closing-with-x-on-the-window">Hook into global closing with "X" on the window</a> - It talks about Rich Dialog and Java Class, I am using Html Dialog and I would like to bind it to an event containing a Script Step with a code in Ivy Script;</p> </li> <li> <p><a href="http://answers.axonivy.com/questions/359/how-can-i-logoff-the-user-if-he-closes-the-browser">How can I logoff the user if he closes the browser?</a> - This one says that the task would be immediately available for the same user, but this is not what's happening in my scenario.</p> </li> </ul> <p>Thanks in advance.</p>Jailson BritoMon, 30 Jan 2017 23:51:34 -0500https://answers.axonivy.com/questions/2406/detecting-when-the-user-closes-the-window-or-tab-of-the-browser-in-a-html-dialogprocesshtmldialogtaskDeploy exception when deleting task switchhttps://answers.axonivy.com/questions/2295/deploy-exception-when-deleting-task-switch<p>Hi all</p> <p>One month ago, i introduced a new task switch element on my project and deploy it on server. So customer used it already (on their side). Now customer think they don't need it anymore so they request me to remove it. </p> <p>After removing that task switch and delete all cases which are related to that element then deploy on server, i got this exception:</p> <pre><code> The task switch element with process element id '155C371802ADDD14-S40-f35' is used by cases of the process model version but is missing in the project `This is the exception from Jenkin` [FAILED] Check task elements: Checks that the process elements that are references by tasks still exists in the project ERROR The task switch element '155C371802ADDD14-S40-f35' is missing - The task switch element with process element id '155C371802ADDD14-S40-f35' is used by cases of the process model version but is missing in the project (Recreate the task switch element with the process element id '155C371802ADDD14-S40-f35' in the project) WARNING There are cases started on the process model version, only deploy changes in your project if you know for sure that those changes do not break the started cases - Because there are cases started on the process model version, you have to ensure that the changes in your project do not break the started cases. We recommend strongly to create allways a new process model version to deploy changes in your projects. However, sometime you only change small things in your project that are compatible to the started cases (e.g. no changes to task switch elements and connected arcs, to intermediate events, to exception elements, to call sub elements and to process data classes). In this case you may want to redeploy a project to an existing process model version. (Create a new process model version and deploy your project changes to the new process model version) </code></pre> <p>I see in that exception engine suggest me to create new PMV, but can we have another way? because we just want to keep one pmv on server. </p> <p><strong>If we try to remove all cases/tasks which is related to this task switch, can we solve it?</strong></p> <p>Thanks all</p>trungdvFri, 16 Dec 2016 03:42:34 -0500https://answers.axonivy.com/questions/2295/deploy-exception-when-deleting-task-switchtaskHow to set createDate from an Ivy Taskhttps://answers.axonivy.com/questions/2230/how-to-set-createdate-from-an-ivy-task<p>How can I set the creation date of an IVY Task? We are using Ivy system tasks to log some external activities. After such an external activity has been done, the external system calls IVY. IVY creates a system task so we have a perfect case history including all tasks which have been done.</p> <p>Right now, the system task has as creation/start-date the current timestamp. How can we set this date to another date (which is may in the past).</p> <p>Thanks!</p>peter_mucTue, 29 Nov 2016 11:29:00 -0500https://answers.axonivy.com/questions/2230/how-to-set-createdate-from-an-ivy-tasktaskJoining two signal?https://answers.axonivy.com/questions/2228/joining-two-signal<p>Hi all</p> <p>I have a requirement as below: <img alt="alt text" src="http://answers.axonivy.com/upfiles/Untitled_850woR8.png"></p> <p>In here i have two process which send two different signals, When one signal has been started, it will wait (by a system task) until the other signal also be started then two signal will join to do another logic. Signal 1 and Signal 2 can be started randomly. If i implement like above picture, the system task will not join to continue when two signals has started already, i guess it's because of there is two different cases. Am i correct?</p> <p>Another approach could be using a boundary signal event. </p> <p>But is there any other approaches which is better than it on ivy? i see in ivy we also has other elements like <em>wait</em>, <em>Call &amp; Wait</em>,... Can i apply it for this requirement.</p> <p>Thanks a lot</p>trungdvTue, 29 Nov 2016 06:59:15 -0500https://answers.axonivy.com/questions/2228/joining-two-signaltaskworkflowTask State inside HtmlUserDialog of UserTask is always SUSPENDEDhttps://answers.axonivy.com/questions/2169/task-state-inside-htmluserdialog-of-usertask-is-always-suspended<p>hi all</p> <p>I'm not sure it is a trouble in Axon Ivy or may be i'm wrong in this situation, as my understanding about task (reference to <a href="http://developer.axonivy.com/doc/">Documentation</a>), the task state will be changed when a user open it. But somehow it's quite strange when i use UserTask (new element, with embedded HtmlUserDialog). When user open that task then it open embedded HtmlUserDialog,but the state was not changed to RESUMED as i expect. so i can't prevent another user from opening it (i want just one user can open a same task in the same time), </p> <p>Everything normal in case i use normal task switch element. I describe task state as below picture (in my investigation): <img alt="alt text" src="http://answers.axonivy.com/upfiles/Untitled_1K9qROP.png"></p> <p>Is it the way we handle for UserTask element? or do we have any way to know the task is already opened or not? Here is the <a href="https://drive.google.com/file/d/0B6qldkZvvHgHMmNNLWhtYWtnLUU/view?usp=sharing">demo</a> (Axon ivy 6.3)</p> <p>Thanks</p>trungdvTue, 08 Nov 2016 13:02:43 -0500https://answers.axonivy.com/questions/2169/task-state-inside-htmluserdialog-of-usertask-is-always-suspendedtasknew ivy portal: possibility to work with a static url to a specific task?https://answers.axonivy.com/questions/2154/new-ivy-portal-possibility-to-work-with-a-static-url-to-a-specific-task<p>The new portal has quite nice features to work with tasks and cases, but we don't know how to resolve the following usecase</p> <p>We want to provide on assignment a notification message with a link that launches the ivy portal for that specific task.</p> <p>But we haven't seen a way to address a specific task via a static link, as the portal seems to use only session oriented , dynamic url's.</p> <p>Any hints how to achieve that?</p> <p>thanks Frank</p>FoberlaeTue, 01 Nov 2016 15:16:24 -0400https://answers.axonivy.com/questions/2154/new-ivy-portal-possibility-to-work-with-a-static-url-to-a-specific-tasktaskGet Taskruntimehttps://answers.axonivy.com/questions/2118/get-taskruntime<p>Hello, I need to know the runtime of a task in a running process. I found a method to get a taskruntime in a process but it is not that easy I expected. Now my question, is there a less complicated way to get the runtime of a task? My way: It is written in the call tab of a user dialog in between 2 task symbols</p> <pre><code>ivy.log.info("Startzeit Task "+in.startTaskTime); </code></pre> <p>It is written in a script step behind the task whilst in.nummer the case nubmer is to get the last entry</p> <pre><code>TaskQuery tazk = TaskQuery.create().where().name().isEqual("Task1Name"); Recordset taskZeit = ivy.wf.getTaskQueryExecutor().getRecordset(tazk.groupBy().endTimestamp()); ivy.log.info("TaskEndeZeit2: "+taskZeit.getColumn("ENDTIMESTAMP").get(in.nummer)); </code></pre>GabrieleWed, 19 Oct 2016 11:21:13 -0400https://answers.axonivy.com/questions/2118/get-taskruntimetaskruntimeruntimetaskHas method findWorkTasks() used for sending daily tasks changed in ivy 6.x?https://answers.axonivy.com/questions/1987/has-method-findworktasks-used-for-sending-daily-tasks-changed-in-ivy-6-x<p>We have upgraded an existing ivy 4.3.x project to ivy 6.0.4. After the update all users who receive the daily task email suddenly have some strange tasks in their email. After a short research I found that the following API method creates the list of tasks for the user:</p> <pre><code>ch.ivyteam.ivy.workflow.IWorkflowContext.findWorkTasks(IUser user, int startIndex, int count) </code></pre> <p>As we haven't actually changed anything at all I guess that this method now returns more tasks than in earlier versions. The additional tasks have an activator called "Top level role" and the expiryTimestamp is not set. </p> <p>Can anyone confirm this change in findWorkTasks or has an idea what the reason of this behaviour is?</p> <p>regards, marco </p>ruffzyWed, 24 Aug 2016 13:31:16 -0400https://answers.axonivy.com/questions/1987/has-method-findworktasks-used-for-sending-daily-tasks-changed-in-ivy-6-xapiemailtask