Questions asked by jirazazabalhttps://answers.axonivy.com/questions/asked-by/624/jirazazabal/?type=rssQuestions asked by <a href="/users/624/jirazazabal" >jirazazabal</a>enThu, 30 Nov 2017 12:17:34 -0500How to save a list from a Dialog?https://answers.axonivy.com/questions/3011/how-to-save-a-list-from-a-dialog<p>Hi all,</p> <p>I have a form (dialog) that it's dynamic. In a field, the user can insert one or multiple values. For example, user has a textfield and an Add button. When the user pushes the Add button, another texfiled shuold appear in order to complete another value for the same (array/list) field.</p> <p>What's the best way to save this multiple dynamic values in a Data object from a Dialog form?</p> <p>Thanks in advance</p>jirazazabalThu, 30 Nov 2017 12:17:34 -0500https://answers.axonivy.com/questions/3011/how-to-save-a-list-from-a-dialoghtmldialogdesignerSplit a process in two lines with Forms in each onehttps://answers.axonivy.com/questions/2980/split-a-process-in-two-lines-with-forms-in-each-one<p>Hi all,</p> <p>I'm needing a way to parallelize to lines of a process, with different logic in each line that includes user dialogs calls and many other logic steps. Split component is not valid as documentation referes. How can I do that? after each line completes the process steps in each one, they are joined with a join component in orther to continue the process execution.</p> <p>Thanks in advance</p>jirazazabalWed, 15 Nov 2017 11:20:14 -0500https://answers.axonivy.com/questions/2980/split-a-process-in-two-lines-with-forms-in-each-onedesignerError when getting a File and putting in process Casehttps://answers.axonivy.com/questions/2704/error-when-getting-a-file-and-putting-in-process-case<p>Hi all,</p> <p>I'm writing a process that must start when a PDF file comes to a folder, and then, use this file (PDF ) in a Dialog to show it to the user -I guess that I can reference in a a-href HTML tag the file to open it by clicking on the link, but I'm not sure if that it's the best way to do it-. I have implemented a ch.ivyteam.ivy.process.eventstart.beans.FilePickupStartEventBean start, and this is working fine. Then, in a script step, I'm trying to put the file in context in order to use it later in forms the way I've explained. So I've got a subprocess like: </p> <p><img alt="alt text" src="http://answers.axonivy.com/upfiles/Image_3_ReciWmX.png"></p> <p><img alt="alt text" src="http://answers.axonivy.com/upfiles/Image_5.png"></p> <p>With this code inside script step:</p> <pre><code>import ch.ivyteam.ivy.workflow.document.IDocumentService; File file = new File(in.pdfPath,true); ivy.case.documents().add(file.getName()); </code></pre> <p>But now, I'm getting this error:</p> <pre><code>IvyScriptMethodNotFoundException: Method add(String) for class ch.ivyteam.ivy.workflow.internal.document.LegazyCaseDocumentService of classloader org.eclipse.osgi.internal.loader.EquinoxClassLoader@6eae3730[ch.ivyteam.ivy.workflow:6.6.0.201704281153(id=100)] not found IvyScriptRuntimeException: IvyScript Runtime Exception in Instruction: ivy.case.documents().add(file.getName()) Block: es.jcd.axonivy.altapersonal.AltaEmpleadoData out; out = in; File file = new File(in.pdfPath, true); ivy.case.documents().add(file.getName()); BpmError: ivy:error:script RequestException: ivy:error:script Process Start Event Bean ch.ivyteam.ivy.process.eventstart.beans.FilePickupStartEventBean [class=ch.ivyteam.ivy.process.eventstart.beans.FilePickupStartEventBean, path=15BECE1340C42A33/eventLink.ivp] fire has been failed [errorId=15CB194B8537DCC2, request=Business Processes/02_Alta_Personal_Impl.mod/eventLink.ivp(4.4.0.0), session=0 (SYSTEM), task=4, application=2147483647, requestId=76, executionContext=SYSTEM, pmv=designer$JCD_Alta_Personal$1] ch.ivyteam.ivy.request.RequestException: ivy:error:script at ch.ivyteam.ivy.request.RequestException$RequestExceptionBuilder.build(RequestException.java:166) at ch.ivyteam.ivy.bpm.engine.internal.BpmEngine.handleNormalRequest(BpmEngine.java:194) 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.process.eventstart.internal.ProcessStartEventBeanEngine.handleRequest(ProcessStartEventBeanEngine.java:442) at ch.ivyteam.ivy.process.eventstart.internal.ProcessStartEventBeanRuntime.fireProcessStartEventRequest(ProcessStartEventBeanRuntime.java:229) at ch.ivyteam.ivy.process.eventstart.internal.ProcessStartEventBeanRuntime.fireProcessStartEventRequestAsSystem(ProcessStartEventBeanRuntime.java:202) at ch.ivyteam.ivy.process.eventstart.internal.ProcessStartEventBeanRuntime$3.call(ProcessStartEventBeanRuntime.java:142) at ch.ivyteam.ivy.process.eventstart.internal.ProcessStartEventBeanRuntime$3.call(ProcessStartEventBeanRuntime.java:1) at ch.ivyteam.ivy.security.internal.SecurityManager.executeAsSystem(SecurityManager.java:1313) at ch.ivyteam.ivy.process.eventstart.internal.ProcessStartEventBeanRuntime.fireProcessStartEventRequest(ProcessStartEventBeanRuntime.java:137) at ch.ivyteam.ivy.process.eventstart.beans.FilePickupStartEventBean.processFile(FilePickupStartEventBean.java:160) at ch.ivyteam.ivy.process.eventstart.beans.FilePickupStartEventBean.findAndReadFiles(FilePickupStartEventBean.java:111) at ch.ivyteam.ivy.process.eventstart.beans.FilePickupStartEventBean.poll(FilePickupStartEventBean.java:362) at ch.ivyteam.ivy.process.eventstart.internal.ProcessStartEventBeanHolder.pollInContext(ProcessStartEventBeanHolder.java:163) at ch.ivyteam.ivy.process.eventstart.internal.ProcessStartEventBeanHolder.pollInternal(ProcessStartEventBeanHolder.java:148) at ch.ivyteam.ivy.process.eventstart.internal.ProcessStartEventBeanHolder$PollJob.execute(ProcessStartEventBeanHolder.java:559) at ch.ivyteam.ivy.job.internal.JobManager$1.call(JobManager.java:382) 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:1365) 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:376) at ch.ivyteam.ivy.job.internal.Job.run(Job.java:56) 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) [errorId=15CB194B8537DCC2, request=Business Processes/02_Alta_Personal_Impl.mod/eventLink.ivp(4.4.0.0), session=0 (SYSTEM), task=4, application=2147483647, requestId=76, executionContext=SYSTEM, pmv=designer$JCD_Alta_Personal$1, processElement=15BECE1340C42A33-S40-f15] Caused by: BpmError ivy:error:script Unique ID: 15CB194B8537DCC2 Process Element: Subir PDF al proceso &lt;15BECE1340C42A33-S40-f15&gt; at ch.ivyteam.ivy.bpm.error.BpmErrorBuilder.build(BpmErrorBuilder.java:204) at ch.ivyteam.ivy.bpm.engine.restricted.error.BpmErrorConverter.toBpmError(BpmErrorConverter.java:30) at ch.ivyteam.ivy.bpm.exec.restricted.scripting.BpmIvyScriptExecutor.executionException(BpmIvyScriptExecutor.java:117) at ch.ivyteam.ivy.scripting.restricted.execution.AbstractIvyScriptExecutor.execute(AbstractIvyScriptExecutor.java:167) at ch.ivyteam.ivy.bpm.exec.restricted.scripting.BpmIvyScriptExecutor.execute(BpmIvyScriptExecutor.java:84) at ch.ivyteam.ivy.bpm.exec.internal.activity.script.ScriptExecutor.execute(ScriptExecutor.java:31) at ch.ivyteam.ivy.bpm.exec.internal.activity.script.ScriptExecutor.execute(ScriptExecutor.java:1) at ch.ivyteam.ivy.bpm.engine.internal.model.bpmn.SimpleActivityExecutorAdapter.execute(SimpleActivityExecutorAdapter.java:36) 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) 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:190) ... 30 more [errorId=15CB194B8537DCC2, request=Business Processes/02_Alta_Personal_Impl.mod/eventLink.ivp(4.4.0.0), session=0 (SYSTEM), task=4, application=2147483647, requestId=76, executionContext=0 (SYSTEM), pmv=designer$JCD_Alta_Personal$1, processElement=15BECE1340C42A33-S40-f15] Caused by: ch.ivyteam.ivy.scripting.exceptions.runtime.IvyScriptRuntimeException: IvyScript Runtime Exception in Instruction: ivy.case.documents().add(file.getName()) Block: es.jcd.axonivy.altapersonal.AltaEmpleadoData out; out = in; File file = new File(in.pdfPath, true); ivy.case.documents().add(file.getName()); at ch.ivyteam.ivy.scripting.internal.language.IvyScriptEnginePerformer.wrapException(IvyScriptEnginePerformer.java:1672) at ch.ivyteam.ivy.scripting.internal.language.IvyScriptEnginePerformer.visitControlInstructionInvoke(IvyScriptEnginePerformer.java:678) at ch.ivyteam.ivy.scripting.internal.language.ControlInstructionInvoke.acceptControlInstructionVisitor(ControlInstructionInvoke.java:98) at ch.ivyteam.ivy.scripting.internal.language.ControlInstruction.acceptInstructionVisitor(ControlInstruction.java:55) at ch.ivyteam.ivy.scripting.internal.language.IvyScriptEnginePerformer.execute(IvyScriptEnginePerformer.java:170) at ch.ivyteam.ivy.scripting.internal.language.IvyScriptEnginePerformer.execute(IvyScriptEnginePerformer.java:126) at ch.ivyteam.ivy.scripting.internal.language.IvyScriptEngine.executeInternal(IvyScriptEngine.java:312) at ch.ivyteam.ivy.scripting.internal.language.IvyScriptEngine.execute(IvyScriptEngine.java:281) at ch.ivyteam.ivy.scripting.restricted.execution.AbstractIvyScriptExecutor.executeInstruction(AbstractIvyScriptExecutor.java:197) at ch.ivyteam.ivy.bpm.exec.restricted.scripting.BpmIvyScriptExecutor.lambda$0(BpmIvyScriptExecutor.java:90) at ch.ivyteam.ivy.security.internal.SecurityContext.executeAs(SecurityContext.java:1289) at ch.ivyteam.ivy.bpm.exec.restricted.scripting.BpmIvyScriptExecutor.executeSecurely(BpmIvyScriptExecutor.java:103) at ch.ivyteam.ivy.bpm.exec.restricted.scripting.BpmIvyScriptExecutor.executeInstruction(BpmIvyScriptExecutor.java:90) at ch.ivyteam.ivy.scripting.restricted.execution.AbstractIvyScriptExecutor.execute(AbstractIvyScriptExecutor.java:158) ... 43 more [errorId=15CB194B8537DCC2, request=Business Processes/02_Alta_Personal_Impl.mod/eventLink.ivp(4.4.0.0), session=0 (SYSTEM), task=4, application=2147483647, requestId=76, executionContext=0 (SYSTEM), pmv=designer$JCD_Alta_Personal$1, processElement=15BECE1340C42A33-S40-f15] Caused by: ch.ivyteam.ivy.scripting.exceptions.invocation.IvyScriptMethodNotFoundException: Method add(String) for class ch.ivyteam.ivy.workflow.internal.document.LegazyCaseDocumentService of classloader org.eclipse.osgi.internal.loader.EquinoxClassLoader@6eae3730[ch.ivyteam.ivy.workflow:6.6.0.201704281153(id=100)] not found at ch.ivyteam.ivy.scripting.internal.language.IvyScriptEnginePerformer.visitControlInstructionInvoke(IvyScriptEnginePerformer.java:631) ... 55 more </code></pre> <p>Any idea?</p> <p>TIA</p>jirazazabalFri, 16 Jun 2017 11:48:33 -0400https://answers.axonivy.com/questions/2704/error-when-getting-a-file-and-putting-in-process-casecasefileUse a picked up PDF in a processhttps://answers.axonivy.com/questions/2660/use-a-picked-up-pdf-in-a-process<p>Hi all,</p> <p>I have a process that starts when a PDF file comes to a folder. I have configured a program start like that:</p> <p><img alt="alt text" src="http://answers.axonivy.com/upfiles/Image_1.png"></p> <p>And process data class like this:</p> <p><img alt="alt text" src="http://answers.axonivy.com/upfiles/Image_2.png"></p> <p>But when the process starts when a file arrives to this folder, i have a NULL value in pdfPath attribute. I don't know why this happens, and I need to use this PDF file in HTML Dialogs.</p> <p>Any idea?</p> <p>Thanks in advance</p>jirazazabalThu, 01 Jun 2017 08:00:44 -0400https://answers.axonivy.com/questions/2660/use-a-picked-up-pdf-in-a-processfileCMS - add a PDF file to the processhttps://answers.axonivy.com/questions/2636/cms-add-a-pdf-file-to-the-process<p>Hi all,</p> <p>I'm trying to find the way to do the following. We need to start a process when a email comes with an attachment. I can solve this by a daemon in OS at host. But then, when the file moves to a folder, I need to:</p> <ul> <li>Start the process </li> <li>Add the PDF to the process to be available to process users.</li> </ul> <p>I'm writing a Java class in order to search if there is a file to the folder and raise the start of the process. I need to know how can put it in a daemon that executes that every x minutes. Then, I have to attach the PDF to the process, but I'm not finding a way to do it.</p> <p>Any idea?</p> <p>Thanks in advance</p>jirazazabalTue, 23 May 2017 08:18:40 -0400https://answers.axonivy.com/questions/2636/cms-add-a-pdf-file-to-the-processcmsjavaDB Table to populate a List of valueshttps://answers.axonivy.com/questions/1823/db-table-to-populate-a-list-of-values<p>Hi all,</p> <p>I'm newbie about AI designer. I'm trying to do something that it should be easy. I want to load a list of values in a Dialog (selectOneMenu) from a DB table. Suppose I have some employees. I want to create a new employee, so I need to assign it to amn existing department. So, I need an object List&lt;department&gt; in the Dialog interface to use it in the selectOneMenu control and save department code when I save this employee data to database.</p> <p>I'm not finding the way to connect the DB step when I make this query to the dialog step.</p> <p>Can you help me? Any documentation about this kind of tasks?</p> <p>BR</p>jirazazabalFri, 17 Jun 2016 15:53:54 -0400https://answers.axonivy.com/questions/1823/db-table-to-populate-a-list-of-valuesdesignerlistAI Designer: Unable to open or create a Dialog Formhttps://answers.axonivy.com/questions/1800/ai-designer-unable-to-open-or-create-a-dialog-form<p>Hi all,</p> <p>I'm attemping to create a User Dialog process or create a HTML Dialog from File -&gt; New -&gt; HTML Dialog, but getting this error:</p> <p><code>12:18:11.783 ERROR [ch.ivyteam.ivy.awtGuiComponents.actions] [JavaFX Application Thread] [executionContext=SYSTEM] cannot open rich dialog browser dialog. java.lang.NullPointerException at ch.ivyteam.ivy.guiComponents.swt.inoutmapping.InOutMappingModel$Initializer.isVisible(InOutMappingModel.java:133) at ch.ivyteam.ivy.guiComponents.swt.inoutmapping.InOutMappingModel$Initializer.createNodesForFields(InOutMappingModel.java:93) at ch.ivyteam.ivy.guiComponents.swt.inoutmapping.InOutMappingModel$Initializer.createInOutMappingModel(InOutMappingModel.java:77) at ch.ivyteam.ivy.guiComponents.swt.inoutmapping.InOutMappingModel.createModelFrom(InOutMappingModel.java:38) at ch.ivyteam.ivy.designer.richdialog.ui.wizard.NewRichDialogInOutMappingWizardPage.updateMappingArea(NewRichDialogInOutMappingWizardPage.java:269) at ch.ivyteam.ivy.designer.richdialog.ui.wizard.NewRichDialogInOutMappingWizardPage.access$1(NewRichDialogInOutMappingWizardPage.java:248) at ch.ivyteam.ivy.designer.richdialog.ui.wizard.NewRichDialogInOutMappingWizardPage$1.modifyText(NewRichDialogInOutMappingWizardPage.java:97) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:179) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1066) at org.eclipse.swt.widgets.Text.wmCommandChild(Text.java:2987) at org.eclipse.swt.widgets.Control.WM_COMMAND(Control.java:4751) at org.eclipse.swt.widgets.Control.windowProc(Control.java:4613) at org.eclipse.swt.widgets.Display.windowProc(Display.java:5023) at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method) at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2443) at org.eclipse.swt.widgets.Text.callWindowProc(Text.java:260) at org.eclipse.swt.widgets.Control.windowProc(Control.java:4705) at org.eclipse.swt.widgets.Text.windowProc(Text.java:2610) at org.eclipse.swt.widgets.Display.windowProc(Display.java:5023) at org.eclipse.swt.internal.win32.OS.SetWindowTextW(Native Method) at org.eclipse.swt.internal.win32.OS.SetWindowText(OS.java:3473) at org.eclipse.swt.widgets.Text.setText(Text.java:2260) at ch.ivyteam.ivy.designer.richdialog.ui.wizard.NewRichDialogInOutMappingWizardPage.initializeCallerDataClass(NewRichDialogInOutMappingWizardPage.java:171) at ch.ivyteam.ivy.designer.richdialog.ui.wizard.NewRichDialogInOutMappingWizardPage.createControl(NewRichDialogInOutMappingWizardPage.java:120) at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:178) at ch.ivyteam.ivy.designer.ui.wizard.AbstractIvyResourceWizard.createPageControls(AbstractIvyResourceWizard.java:88) at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:759) at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:622) at org.eclipse.jface.window.Window.create(Window.java:435) at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1101) at org.eclipse.jface.window.Window.open(Window.java:797) at ch.ivyteam.ivy.guiComponents.swt.dialogs.search.userdialog.UserDialogCreateWizardBuilder.open(UserDialogCreateWizardBuilder.java:81) at ch.ivyteam.ivy.awtGuiComponents.actions.ActionFactory$16$1.run(ActionFactory.java:879) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:136) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4147) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3764) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603) at org.eclipse.equinox.launcher.Main.run(Main.java:1465)</code></p> <p>Any idea about what is this error about? we are in a hurry with this </p> <p>BR</p>jirazazabalMon, 13 Jun 2016 12:24:12 -0400https://answers.axonivy.com/questions/1800/ai-designer-unable-to-open-or-create-a-dialog-formhtmluserdialogdesigner