Questions Tagged With taskshttps://answers.axonivy.com/tags/tasks/?type=rssquestions tagged <span class="tag">tasks</span>enWed, 13 May 2020 11:35:06 -0400Delayed Tasks in portal not seenhttps://answers.axonivy.com/questions/4571/delayed-tasks-in-portal-not-seen<p>As a workflow admin I want to see delayed tasks running by the system user. In the BasicWorkflowUi I can see such tasks in the Workflow Admin section. But I didn't find a way to see them in the portal application. So at this time I use both projects: the portal and the BasicWorkflowUi.</p> <p>Is there a way to see or find delayed or destroyed tasks in the portal application?</p>PWeberWed, 13 May 2020 11:35:06 -0400https://answers.axonivy.com/questions/4571/delayed-tasks-in-portal-not-seentasksportalError message on already started taskhttps://answers.axonivy.com/questions/4474/error-message-on-already-started-task<p>Hello all, </p> <p>On older versions of the portal we used to have error message on the top right corner of the task list view of the portal:<img alt="alt text" src="https://answers.axonivy.com/upfiles/errorM.PNG"></p> <p>But right now with portal version 8.0.2 what we get is an error page instead of that message: <img alt="alt text" src="https://answers.axonivy.com/upfiles/errorP.PNG"></p> <p>My question is whether we are not doing the proper way? And if so how to solve that issue? Thanks in advance for your help.</p> <p>Alex</p>a_v_aThu, 26 Mar 2020 08:45:02 -0400https://answers.axonivy.com/questions/4474/error-message-on-already-started-tasktasksportalWhat would be the impact of deleting tasks with additional property "HIDE"https://answers.axonivy.com/questions/4260/what-would-be-the-impact-of-deleting-tasks-with-additional-property-hide<p>Hello all, </p> <p>What would be the impact of deleting tasks with additional property "HIDE"? Any concerns, cautions, doubts?</p> <p>Thanks a lot, </p> <p>Alex</p>a_v_aMon, 09 Dec 2019 09:50:00 -0500https://answers.axonivy.com/questions/4260/what-would-be-the-impact-of-deleting-tasks-with-additional-property-hidetaskswho can run a task vs who can see a taskhttps://answers.axonivy.com/questions/3622/who-can-run-a-task-vs-who-can-see-a-task<p>Hi,</p> <p>Is it possible to make a task visible to a specified ROLE but only one user can Run it ? </p> <p>illustration : i want to assign a task to a user in a specific department, but i also want all the users in that department to be able to see the task and track it, but they cannot work on it. </p> <p>a work-around i came up with is to assign the task to the whole department, but hide the "run" button based on a custom field value in the task. also I added another layer of authentication when the task starts in order to increase security.(see the diagram ) <img alt="alt text" src="https://i.ibb.co/ky30z9Z/2019-01-21-16-09-07-Sample-Project-validation-Moqups.png"></p> <p>is this work-around secure ? </p> <p>is there a general solution for this issue ? </p> <p>i am using v 7.0.2 </p>Mohammed ShabanaMon, 21 Jan 2019 03:20:48 -0500https://answers.axonivy.com/questions/3622/who-can-run-a-task-vs-who-can-see-a-tasktaskstasklistroleuserSet a task to DONE by using Ivy's APIhttps://answers.axonivy.com/questions/3618/set-a-task-to-done-by-using-ivy-s-api<p>Is it possible to set a suspended Task to DONE using the Ivy API? (as it is possible to destroy the task with ivy.task.destroy())</p> <p>UseCase: Within a process, a task is generated for a specific role (e.g. a task without user interaction / interface etc.) to report the progress. The system/process may now continue working in the background and, as soon it has been done its work, the state of the task should also be set to DONE by using java code (ivyscript code would also be possible). </p> <p>The reason for that is that the user should see this task in the task history but the task should not going to "destroyed"</p> <p>Thanks in advance for answers</p>StefanWed, 16 Jan 2019 05:44:48 -0500https://answers.axonivy.com/questions/3618/set-a-task-to-done-by-using-ivy-s-apiapitasksdoneWhy 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-disappeartaskstaskCan not destroy DONE taskhttps://answers.axonivy.com/questions/2296/can-not-destroy-done-task<p>Hi all</p> <p>I'm trying to remove task on server, here is the API</p> <pre><code>public static void destroyPendingTasksByProcessContext(String processKey) throws EnvironmentNotAvailableException, PersistencyException, Exception{ SecurityManagerFactory.getSecurityManager().executeAsSystem(() -&gt; { TaskQuery taskQuery = TaskQuery.create() .where().customVarCharField5().isEqual(processKey); List&lt;ITask&gt; tasks = Ivy.wf().getTaskQueryExecutor().getResults(taskQuery); tasks.forEach(destroyTask -&gt; { destroyTask.destroy(); }); return StringUtils.EMPTY; }); } </code></pre> <p>in the query you can see i use a processkey as a flag to destroy all tasks which are related to my project. And i got this exception:</p> <pre><code>Caused by: java.lang.IllegalStateException: State of Task must be one of the following values DELAYED, SUSPENDED, PARKED, RESUMED, UNASSIGNED, FAILED, READY_FOR_JOIN, JOINING, JOIN_FAILED, CREATED, WAITING_FOR_INTERMEDIATE_EVENT but is DONE (The task might have been finished by another user.) </code></pre> <p>How can we solve it? Thanks</p>trungdvFri, 16 Dec 2016 03:49:26 -0500https://answers.axonivy.com/questions/2296/can-not-destroy-done-tasktasksSkip tasklist flaghttps://answers.axonivy.com/questions/2117/skip-tasklist-flag<p>How can i evaluate the skip tasklist flag while iterating through the tasks of a specific case?</p>tiagoWed, 19 Oct 2016 09:22:04 -0400https://answers.axonivy.com/questions/2117/skip-tasklist-flagtasklisttasksHow to resume a process instancehttps://answers.axonivy.com/questions/1714/how-to-resume-a-process-instance<p>Hello,</p> <p>how can I resume a process instance? E.g. a user exits a process before the process is ended. How can I display a overview of the not finished processes and let him or another user in a certain role resume at this specific point?</p> <p>Thanks! </p>poteaSun, 03 Apr 2016 11:52:05 -0400https://answers.axonivy.com/questions/1714/how-to-resume-a-process-instanceprocesstasksAssign user Tasks to another (user will be deleted)https://answers.axonivy.com/questions/1653/assign-user-tasks-to-another-user-will-be-deleted<p>Good morning,</p> <p>Is there a possibility to assign all the tasks owned by a user to another one? In that case the first user. Thanks a lot in advance</p> <p>Emmanuel</p>EmmanuelFri, 12 Feb 2016 09:16:11 -0500https://answers.axonivy.com/questions/1653/assign-user-tasks-to-another-user-will-be-deletedtasksuserTaskQuery case insensitive searchhttps://answers.axonivy.com/questions/1442/taskquery-case-insensitive-search<p>Hi all,</p> <p>Is it possible to search against String Task properties with a TaskQuery so that the search is performed case insensitive.</p> <pre><code> TaskQuery stringFieldQuery = TaskQuery.create(); stringFieldQuery.where().name().isLike("my task name"); </code> </pre> <p>I would like that such a query returns the tasks which name is "MY Task NAme". Thanks in advance</p> <p>Emmanuel</p>EmmanuelFri, 14 Aug 2015 16:36:27 -0400https://answers.axonivy.com/questions/1442/taskquery-case-insensitive-searchcase-querytaskstask-querySort Task by CASE_NAMEhttps://answers.axonivy.com/questions/1355/sort-task-by-case_name<p>Hello,</p> <p>in one of our HTML Dialog, we use a datatable with Ivy Tasks in it. For that we use the ch.ivyteam.wf.common.TaskLazyDataModel as done in the jsfWFUI in the TaskList View. One of our column is #{task.case.name} and I really would like to be able to sort that column. Unfortunately, there CASE_NAME is not present in the TaskProperty Enum and if i figure how it work correctly, it must be there to be able to use sortBy="#{CASE_NAME}". Is there some way to do this ?</p> <p>FTM I see two options :</p> <ol> <li>In the TaskProperty Enum I saw CUSTOM_VARCHAR_FIELD_1. Would it do the job ? If yes how does it work ? Do you have example(s - one would be enough) ?</li> <li>Making a table without the lazy part but that would be a problem if the app is heavily used.</li> </ol> <p>Thank you for your answer Denis</p>dbalasseTue, 09 Jun 2015 16:57:36 -0400https://answers.axonivy.com/questions/1355/sort-task-by-case_namecasejsftasksjsfwfuiListen to process-case start and task creation & starthttps://answers.axonivy.com/questions/1193/listen-to-process-case-start-and-task-creation-start<p>I would like to know if there is a possibility to dynamically listen to all ivy standard processes starts and ivy task creations and starts. The idea would be to get a reference to any standard processes-cases that are started or tasks that are created.</p> <p>Thanks a lot in advance</p> <p>Emmanuel</p>EmmanuelTue, 03 Mar 2015 17:07:50 -0500https://answers.axonivy.com/questions/1193/listen-to-process-case-start-and-task-creation-startprocesstasks