Questions Tagged With taskhttps://answers.axonivy.com/tags/task/?type=rss&user=trungdvquestions tagged <span class="tag">task</span>enWed, 19 Sep 2018 00:23:01 -0400How 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-taskivy7xtaskDeploy 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-switchtaskJoining 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-suspendedtaskCan not create task inside overriding sub process because of IllegalStateException on TaskSwitchhttps://answers.axonivy.com/questions/1894/can-not-create-task-inside-overriding-sub-process-because-of-illegalstateexception-on-taskswitch<p>Hi ivy team</p> <p>In my current project, we have structure like this picture: <img alt="alt text" src="http://answers.axonivy.com/upfiles/1111_pdSi6Ce.jpg"></p> <p>I can explain structure in some more words: - We have three module: Standard, Wir and Wir Test. Wir depend on Standard and Wir Test depend on Wir</p> <ul> <li> <p>In Standard we have one CallableSub <em>Document Entry Process</em> and it call another callablesub <em>Handler Document Entry</em></p> </li> <li> <p>In wir, we override the <em>Handler Document Entry</em> to create Ivy Task (use Task Switch/UserTask) then open the HtmlUserDialog of Wir project. We use the overriding function from Ivy.</p> </li> <li> <p>Now we have the start link from Wir Test (actually no matter where we put the startlink, could be on Wir),and it call <em>Document Entry Process</em> from standard, then run the Overriding Process of <em>Handler Document Entry</em> on Wir. </p> </li> </ul> <p>But when the process hit to Task Element, it throw this exception:</p> <pre><code> ch.ivyteam.ivy.request.RequestException: ivy:error:system at ch.ivyteam.ivy.request.RequestException$RequestExceptionBuilder.build(RequestException.java:161) at ch.ivyteam.ivy.bpm.engine.internal.BpmEngine.handleNormalRequest(BpmEngine.java:195) at ch.ivyteam.ivy.bpm.engine.internal.BpmEngine.handleRequestWithinContext(BpmEngine.java:140) at ch.ivyteam.ivy.request.impl.ContextAwareRequestHandler.handleRequest(ContextAwareRequestHandler.java:32) at ch.ivyteam.ivy.system.task.internal.SystemTaskJob.executeProcess(SystemTaskJob.java:127) at ch.ivyteam.ivy.system.task.internal.SystemTaskJob.executeAsSystem(SystemTaskJob.java:92) at ch.ivyteam.ivy.system.task.internal.SystemTaskJob$1.call(SystemTaskJob.java:56) at ch.ivyteam.ivy.security.internal.SecurityManager.executeAsSystem(SecurityManager.java:1467) at ch.ivyteam.ivy.system.task.internal.SystemTaskJob.execute(SystemTaskJob.java:52) at ch.ivyteam.ivy.job.internal.JobManager$1.call(JobManager.java:267) at ch.ivyteam.ivy.job.internal.JobManager$1.call(JobManager.java:1) at ch.ivyteam.util.callable.ExecutionContextContainer$ContainerExecutionContext.call(ExecutionContextContainer.java:92) at ch.ivyteam.ivy.security.internal.SecurityManager.executeInContext_aroundBody0(SecurityManager.java:1519) at ch.ivyteam.ivy.security.internal.SecurityManager.executeInContext_aroundBody1$advice(SecurityManager.java:41) at ch.ivyteam.ivy.security.internal.SecurityManager.executeInContext(SecurityManager.java:1) at ch.ivyteam.util.callable.ExecutionContextContainer$ContainerExecutionContext.call(ExecutionContextContainer.java:88) at ch.ivyteam.util.callable.ExecutionContextContainer.executeInContext(ExecutionContextContainer.java:27) at ch.ivyteam.ivy.job.internal.JobManager.execute(JobManager.java:261) at ch.ivyteam.ivy.job.internal.Job.run(Job.java:83) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: BpmError ivy:error:system Unique ID: 155EDB7F283297EF Process Element: create task for Document entry &lt;155C371802ADDD14-f62&gt; Process Call Stack: DocumentEntryProcess &lt;154380E2AD199B4E-f1&gt; BaseDocumentProcess &lt;1559F2D43EBE9F5C-f3&gt; at ch.ivyteam.ivy.bpm.error.BpmErrorBuilder.build(BpmErrorBuilder.java:204) at ch.ivyteam.ivy.bpm.engine.restricted.error.BpmErrorHandler.getBpmErrorFor(BpmErrorHandler.java:90) at ch.ivyteam.ivy.bpm.engine.restricted.error.BpmErrorHandler.handleException(BpmErrorHandler.java:45) at ch.ivyteam.ivy.bpm.engine.internal.core.ProcessElementExecution.execute(ProcessElementExecution.java:42) at ch.ivyteam.ivy.bpm.engine.internal.core.RequestProcessor.handleExecution(RequestProcessor.java:140) at ch.ivyteam.ivy.bpm.engine.internal.core.RequestProcessor.processRequest(RequestProcessor.java:130) at ch.ivyteam.ivy.bpm.engine.internal.core.RequestProcessor.handleRequest(RequestProcessor.java:95) at ch.ivyteam.ivy.bpm.engine.internal.core.RequestProcessor.handleCallRequest(RequestProcessor.java:86) at ch.ivyteam.ivy.bpm.engine.internal.BpmEngine.handleCallRequest(BpmEngine.java:243) at ch.ivyteam.ivy.bpm.engine.internal.BpmEngine.handleCallRequest(BpmEngine.java:227) at ch.ivyteam.ivy.bpm.engine.internal.BpmEngine.handleRequestWithinContext(BpmEngine.java:132) at ch.ivyteam.ivy.request.impl.ContextAwareRequestHandler.handleRequest(ContextAwareRequestHandler.java:32) at ch.ivyteam.ivy.bpm.engine.internal.CallService.handleRequest(CallService.java:101) at ch.ivyteam.ivy.bpm.engine.internal.CallService.callTarget(CallService.java:93) at ch.ivyteam.ivy.bpm.engine.internal.CallService.call(CallService.java:59) at ch.ivyteam.ivy.bpm.engine.internal.core.ProcessCallExecution.execute(ProcessCallExecution.java:25) at ch.ivyteam.ivy.bpm.engine.internal.core.RequestProcessor.handleExecution(RequestProcessor.java:140) at ch.ivyteam.ivy.bpm.engine.internal.core.RequestProcessor.processRequest(RequestProcessor.java:130) at ch.ivyteam.ivy.bpm.engine.internal.core.RequestProcessor.handleRequest(RequestProcessor.java:95) at ch.ivyteam.ivy.bpm.engine.internal.core.RequestProcessor.handleCallRequest(RequestProcessor.java:86) at ch.ivyteam.ivy.bpm.engine.internal.BpmEngine.handleCallRequest(BpmEngine.java:243) at ch.ivyteam.ivy.bpm.engine.internal.BpmEngine.handleCallRequest(BpmEngine.java:227) at ch.ivyteam.ivy.bpm.engine.internal.BpmEngine.handleRequestWithinContext(BpmEngine.java:132) at ch.ivyteam.ivy.request.impl.ContextAwareRequestHandler.handleRequest(ContextAwareRequestHandler.java:32) at ch.ivyteam.ivy.bpm.engine.internal.CallService.handleRequest(CallService.java:101) at ch.ivyteam.ivy.bpm.engine.internal.CallService.callTarget(CallService.java:93) at ch.ivyteam.ivy.bpm.engine.internal.CallService.call(CallService.java:59) at ch.ivyteam.ivy.bpm.engine.internal.core.ProcessCallExecution.execute(ProcessCallExecution.java:25) at ch.ivyteam.ivy.bpm.engine.internal.core.RequestProcessor.handleExecution(RequestProcessor.java:140) at ch.ivyteam.ivy.bpm.engine.internal.core.RequestProcessor.processRequest(RequestProcessor.java:130) at ch.ivyteam.ivy.bpm.engine.internal.core.RequestProcessor.handleRequest(RequestProcessor.java:95) at ch.ivyteam.ivy.bpm.engine.internal.core.RequestProcessor.handleRequest(RequestProcessor.java:77) at ch.ivyteam.ivy.bpm.engine.internal.BpmEngine.handleNormalRequest(BpmEngine.java:191) ... 22 more Caused by: java.lang.IllegalStateException: TaskSwitch element (TaskSwitchElement [id=155C371802ADDD14-f62, name=create task for Document entry, type=UserTask]) is not permitted inside a sub process of a required project. at ch.ivyteam.ivy.bpm.engine.internal.model.bpmn.TaskSwitchElementExecutorAdapter.checkIllegalTaskSwitchUsage(TaskSwitchElementExecutorAdapter.java:111) at ch.ivyteam.ivy.bpm.engine.internal.model.bpmn.TaskSwitchElementExecutorAdapter.execute(TaskSwitchElementExecutorAdapter.java:81) at ch.ivyteam.ivy.bpm.engine.internal.model.ProcessElement.lambda$0(ProcessElement.java:215) at ch.ivyteam.ivy.bpm.engine.internal.model.ProcessElement.executeInElementContext(ProcessElement.java:286) at ch.ivyteam.ivy.bpm.engine.internal.model.ProcessElement.execute(ProcessElement.java:215) at ch.ivyteam.ivy.bpm.engine.internal.core.ProcessElementExecution.execute(ProcessElementExecution.java:37) ... 51 more </code></pre> <p>Does anyone know about this issue? Why it happen and how to solve it</p>trungdvFri, 15 Jul 2016 10:58:56 -0400https://answers.axonivy.com/questions/1894/can-not-create-task-inside-overriding-sub-process-because-of-illegalstateexception-on-taskswitchtaskivyHow to handle expired date in ivytaskhttps://answers.axonivy.com/questions/808/how-to-handle-expired-date-in-ivytask<p>Hello everybody</p> <p>We are working with ivy task and we have requirement to send an email to member for the case the date of the task creation was [x] days ago (user can configure this period).Actually we can do that request by using automatic process but i just saw some strange parts in ivy task (red border in below picture) it might have us. I don't have experience about that. What is it used for? We can use it for our requirement?</p> <p>Anybody can help us?</p> <p>Thanks you</p> <p><img alt="alt text" src="/upfiles/ivy_task.jpg"></p>trungdvMon, 23 Jun 2014 05:15:38 -0400https://answers.axonivy.com/questions/808/how-to-handle-expired-date-in-ivytaskivyscripttask