diff --git a/Fluig novo/.gitignore b/Fluig novo/.gitignore new file mode 100644 index 0000000..e10e727 --- /dev/null +++ b/Fluig novo/.gitignore @@ -0,0 +1 @@ +/.metadata/ diff --git a/Fluig novo/.metadata/.log b/Fluig novo/.metadata/.log index b4be999..81b215e 100644 --- a/Fluig novo/.metadata/.log +++ b/Fluig novo/.metadata/.log @@ -1534,3 +1534,363 @@ org.eclipse.swt.SWTException: Widget is disposed at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:660) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:597) at org.eclipse.equinox.launcher.Main.run(Main.java:1468) +!SESSION 2026-05-15 08:37:38.420 ----------------------------------------------- +eclipse.buildId=4.13.0.I20190916-1045 +java.version=1.8.0_202 +java.vendor=Oracle Corporation +BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=pt_BR +Framework arguments: -product org.eclipse.epp.package.jee.product +Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product + +!ENTRY org.eclipse.egit.ui 2 0 2026-05-15 08:38:53.936 +!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git +user global configuration and to define the default location to store repositories: 'C:\Users\andrey.cunha'. If this is +not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and +EGit might behave differently since they see different configuration options. +This warning can be switched off on the Team > Git > Confirmations and Warnings preference page. + +!ENTRY org.eclipse.ui 4 4 2026-05-15 08:39:47.389 +!MESSAGE Unable to create part +!STACK 1 +org.eclipse.ui.PartInitException: + at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:346) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) + at java.lang.reflect.Method.invoke(Unknown Source) + at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58) + at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:998) + at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:963) + at org.eclipse.e4.core.internal.di.InjectorImpl.internalInject(InjectorImpl.java:139) + at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:408) + at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:331) + at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:202) + at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:91) + at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:60) + at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:42) + at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:132) + at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:1002) + at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:662) + at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:768) + at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$0(PartRenderingEngine.java:739) + at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$2.run(PartRenderingEngine.java:733) + at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45) + at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:717) + at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1293) + at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.lambda$0(LazyStackRenderer.java:75) + at org.eclipse.e4.ui.services.internal.events.UIEventHandler.lambda$0(UIEventHandler.java:38) + at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:236) + at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:146) + at org.eclipse.swt.widgets.Display.syncExec(Display.java:4622) + at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:219) + at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38) + at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:205) + at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:203) + at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1) + at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:234) + at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:151) + at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:132) + at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:75) + at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:44) + at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:55) + at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:63) + at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:424) + at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElementGen(ElementContainerImpl.java:170) + at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:188) + at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.hidePart(PartServiceImpl.java:1359) + at org.eclipse.ui.internal.WorkbenchPage.hidePart(WorkbenchPage.java:1554) + at org.eclipse.ui.internal.WorkbenchPage.hidePart(WorkbenchPage.java:1506) + at org.eclipse.ui.internal.WorkbenchPage.closeEditors(WorkbenchPage.java:1476) + at org.eclipse.ui.internal.WorkbenchPage.closeEditor(WorkbenchPage.java:1600) + at org.eclipse.graphiti.ui.editor.DiagramEditor.close(DiagramEditor.java:855) + at org.eclipse.graphiti.ui.editor.DefaultUpdateBehavior.closeContainer(DefaultUpdateBehavior.java:499) + at org.eclipse.graphiti.ui.editor.DefaultUpdateBehavior$DefaultUpdateAdapter$3.run(DefaultUpdateBehavior.java:616) + at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40) + at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:185) + at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3961) + at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3588) + at org.eclipse.jface.operation.ModalContext$ModalContextThread.block(ModalContext.java:166) + at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:368) + at org.eclipse.ltk.internal.ui.refactoring.RefactoringWizardDialog2.run(RefactoringWizardDialog2.java:324) + at org.eclipse.ltk.ui.refactoring.RefactoringWizard.internalPerformFinish(RefactoringWizard.java:639) + at org.eclipse.ltk.internal.ui.refactoring.ErrorWizardPage.performFinish(ErrorWizardPage.java:151) + at org.eclipse.ltk.ui.refactoring.RefactoringWizard.performFinish(RefactoringWizard.java:713) + at org.eclipse.ltk.internal.ui.refactoring.RefactoringWizardDialog2.okPressed(RefactoringWizardDialog2.java:463) + at org.eclipse.jface.dialogs.Dialog.buttonPressed(Dialog.java:468) + at org.eclipse.jface.dialogs.Dialog.lambda$0(Dialog.java:619) + at org.eclipse.swt.events.SelectionListener$1.widgetSelected(SelectionListener.java:84) + at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:252) + at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89) + at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4173) + at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057) + at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3986) + at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3585) + at org.eclipse.jface.window.Window.runEventLoop(Window.java:823) + at org.eclipse.jface.window.Window.open(Window.java:799) + at org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation$1.run(RefactoringWizardOpenOperation.java:192) + at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:72) + at org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation.run(RefactoringWizardOpenOperation.java:212) + at org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation.run(RefactoringWizardOpenOperation.java:126) + at org.eclipse.ltk.internal.ui.refactoring.actions.DeleteResourcesHandler.execute(DeleteResourcesHandler.java:44) + at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:283) + at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:95) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) + at java.lang.reflect.Method.invoke(Unknown Source) + at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58) + at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:318) + at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:252) + at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:173) + at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:156) + at org.eclipse.core.commands.Command.executeWithChecks(Command.java:498) + at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:487) + at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213) + at org.eclipse.ui.internal.handlers.LegacyHandlerService.executeCommandInContext(LegacyHandlerService.java:440) + at org.eclipse.ui.internal.ide.actions.LTKLauncher.runCommand(LTKLauncher.java:99) + at org.eclipse.ui.internal.ide.actions.LTKLauncher.openDeleteWizard(LTKLauncher.java:51) + at org.eclipse.ui.actions.DeleteResourceAction.run(DeleteResourceAction.java:452) + at org.eclipse.jdt.internal.ui.refactoring.reorg.DeleteAction.run(DeleteAction.java:197) + at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:274) + at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:252) + at org.eclipse.jface.action.Action.runWithEvent(Action.java:474) + at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:121) + at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:95) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) + at java.lang.reflect.Method.invoke(Unknown Source) + at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58) + at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:318) + at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:252) + at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:173) + at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:156) + at org.eclipse.core.commands.Command.executeWithChecks(Command.java:498) + at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:487) + at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213) + at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.executeCommand(KeyBindingDispatcher.java:308) + at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.press(KeyBindingDispatcher.java:584) + at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.processKeyEvent(KeyBindingDispatcher.java:653) + at org.eclipse.e4.ui.bindings.keys.OutOfOrderListener.handleEvent(OutOfOrderListener.java:75) + at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89) + at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4173) + at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057) + at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1081) + at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1066) + at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1108) + at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1104) + at org.eclipse.swt.widgets.Widget.wmKeyDown(Widget.java:1759) + at org.eclipse.swt.widgets.Control.WM_KEYDOWN(Control.java:5146) + at org.eclipse.swt.widgets.Tree.WM_KEYDOWN(Tree.java:6119) + at org.eclipse.swt.widgets.Control.windowProc(Control.java:4793) + at org.eclipse.swt.widgets.Tree.windowProc(Tree.java:5987) + at org.eclipse.swt.widgets.Display.windowProc(Display.java:4812) + at org.eclipse.swt.internal.win32.OS.DispatchMessage(Native Method) + at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3583) + at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1160) + at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338) + at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1049) + at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155) + at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:633) + at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338) + at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:557) + at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) + at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:150) + at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203) + at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137) + at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107) + at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400) + at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) + at java.lang.reflect.Method.invoke(Unknown Source) + at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:660) + at org.eclipse.equinox.launcher.Main.basicRun(Main.java:597) + at org.eclipse.equinox.launcher.Main.run(Main.java:1468) +Caused by: java.lang.NullPointerException + at com.totvs.tds.ecm.designer.eclipse.ui.TotvsBpmnDiagramEditor$8.doExecute(TotvsBpmnDiagramEditor.java:580) + at org.eclipse.emf.transaction.RecordingCommand.execute(RecordingCommand.java:135) + at org.eclipse.emf.workspace.EMFCommandOperation.doExecute(EMFCommandOperation.java:119) + at org.eclipse.emf.workspace.AbstractEMFOperation.execute(AbstractEMFOperation.java:150) + at org.eclipse.core.commands.operations.DefaultOperationHistory.execute(DefaultOperationHistory.java:496) + at org.eclipse.emf.workspace.impl.WorkspaceCommandStackImpl.doExecute(WorkspaceCommandStackImpl.java:208) + at org.eclipse.emf.transaction.impl.AbstractTransactionalCommandStack.execute(AbstractTransactionalCommandStack.java:165) + at org.eclipse.graphiti.ui.internal.editor.GFWorkspaceCommandStackImpl.execute(GFWorkspaceCommandStackImpl.java:94) + at org.eclipse.emf.transaction.impl.AbstractTransactionalCommandStack.execute(AbstractTransactionalCommandStack.java:219) + at com.totvs.tds.ecm.designer.eclipse.ui.TotvsBpmnDiagramEditor.resizeGateway(TotvsBpmnDiagramEditor.java:636) + at com.totvs.tds.ecm.designer.eclipse.ui.TotvsBpmnDiagramEditor.init(TotvsBpmnDiagramEditor.java:418) + at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:353) + at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:340) + ... 154 more +!SUBENTRY 1 org.eclipse.ui 4 0 2026-05-15 08:39:47.392 +!MESSAGE +!STACK 0 +java.lang.NullPointerException + at com.totvs.tds.ecm.designer.eclipse.ui.TotvsBpmnDiagramEditor$8.doExecute(TotvsBpmnDiagramEditor.java:580) + at org.eclipse.emf.transaction.RecordingCommand.execute(RecordingCommand.java:135) + at org.eclipse.emf.workspace.EMFCommandOperation.doExecute(EMFCommandOperation.java:119) + at org.eclipse.emf.workspace.AbstractEMFOperation.execute(AbstractEMFOperation.java:150) + at org.eclipse.core.commands.operations.DefaultOperationHistory.execute(DefaultOperationHistory.java:496) + at org.eclipse.emf.workspace.impl.WorkspaceCommandStackImpl.doExecute(WorkspaceCommandStackImpl.java:208) + at org.eclipse.emf.transaction.impl.AbstractTransactionalCommandStack.execute(AbstractTransactionalCommandStack.java:165) + at org.eclipse.graphiti.ui.internal.editor.GFWorkspaceCommandStackImpl.execute(GFWorkspaceCommandStackImpl.java:94) + at org.eclipse.emf.transaction.impl.AbstractTransactionalCommandStack.execute(AbstractTransactionalCommandStack.java:219) + at com.totvs.tds.ecm.designer.eclipse.ui.TotvsBpmnDiagramEditor.resizeGateway(TotvsBpmnDiagramEditor.java:636) + at com.totvs.tds.ecm.designer.eclipse.ui.TotvsBpmnDiagramEditor.init(TotvsBpmnDiagramEditor.java:418) + at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:353) + at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:340) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) + at java.lang.reflect.Method.invoke(Unknown Source) + at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58) + at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:998) + at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:963) + at org.eclipse.e4.core.internal.di.InjectorImpl.internalInject(InjectorImpl.java:139) + at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:408) + at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:331) + at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:202) + at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:91) + at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:60) + at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:42) + at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:132) + at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:1002) + at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:662) + at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:768) + at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$0(PartRenderingEngine.java:739) + at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$2.run(PartRenderingEngine.java:733) + at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45) + at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:717) + at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1293) + at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.lambda$0(LazyStackRenderer.java:75) + at org.eclipse.e4.ui.services.internal.events.UIEventHandler.lambda$0(UIEventHandler.java:38) + at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:236) + at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:146) + at org.eclipse.swt.widgets.Display.syncExec(Display.java:4622) + at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:219) + at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38) + at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:205) + at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:203) + at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1) + at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:234) + at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:151) + at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:132) + at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:75) + at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:44) + at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:55) + at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:63) + at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:424) + at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElementGen(ElementContainerImpl.java:170) + at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:188) + at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.hidePart(PartServiceImpl.java:1359) + at org.eclipse.ui.internal.WorkbenchPage.hidePart(WorkbenchPage.java:1554) + at org.eclipse.ui.internal.WorkbenchPage.hidePart(WorkbenchPage.java:1506) + at org.eclipse.ui.internal.WorkbenchPage.closeEditors(WorkbenchPage.java:1476) + at org.eclipse.ui.internal.WorkbenchPage.closeEditor(WorkbenchPage.java:1600) + at org.eclipse.graphiti.ui.editor.DiagramEditor.close(DiagramEditor.java:855) + at org.eclipse.graphiti.ui.editor.DefaultUpdateBehavior.closeContainer(DefaultUpdateBehavior.java:499) + at org.eclipse.graphiti.ui.editor.DefaultUpdateBehavior$DefaultUpdateAdapter$3.run(DefaultUpdateBehavior.java:616) + at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40) + at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:185) + at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3961) + at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3588) + at org.eclipse.jface.operation.ModalContext$ModalContextThread.block(ModalContext.java:166) + at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:368) + at org.eclipse.ltk.internal.ui.refactoring.RefactoringWizardDialog2.run(RefactoringWizardDialog2.java:324) + at org.eclipse.ltk.ui.refactoring.RefactoringWizard.internalPerformFinish(RefactoringWizard.java:639) + at org.eclipse.ltk.internal.ui.refactoring.ErrorWizardPage.performFinish(ErrorWizardPage.java:151) + at org.eclipse.ltk.ui.refactoring.RefactoringWizard.performFinish(RefactoringWizard.java:713) + at org.eclipse.ltk.internal.ui.refactoring.RefactoringWizardDialog2.okPressed(RefactoringWizardDialog2.java:463) + at org.eclipse.jface.dialogs.Dialog.buttonPressed(Dialog.java:468) + at org.eclipse.jface.dialogs.Dialog.lambda$0(Dialog.java:619) + at org.eclipse.swt.events.SelectionListener$1.widgetSelected(SelectionListener.java:84) + at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:252) + at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89) + at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4173) + at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057) + at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3986) + at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3585) + at org.eclipse.jface.window.Window.runEventLoop(Window.java:823) + at org.eclipse.jface.window.Window.open(Window.java:799) + at org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation$1.run(RefactoringWizardOpenOperation.java:192) + at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:72) + at org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation.run(RefactoringWizardOpenOperation.java:212) + at org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation.run(RefactoringWizardOpenOperation.java:126) + at org.eclipse.ltk.internal.ui.refactoring.actions.DeleteResourcesHandler.execute(DeleteResourcesHandler.java:44) + at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:283) + at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:95) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) + at java.lang.reflect.Method.invoke(Unknown Source) + at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58) + at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:318) + at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:252) + at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:173) + at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:156) + at org.eclipse.core.commands.Command.executeWithChecks(Command.java:498) + at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:487) + at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213) + at org.eclipse.ui.internal.handlers.LegacyHandlerService.executeCommandInContext(LegacyHandlerService.java:440) + at org.eclipse.ui.internal.ide.actions.LTKLauncher.runCommand(LTKLauncher.java:99) + at org.eclipse.ui.internal.ide.actions.LTKLauncher.openDeleteWizard(LTKLauncher.java:51) + at org.eclipse.ui.actions.DeleteResourceAction.run(DeleteResourceAction.java:452) + at org.eclipse.jdt.internal.ui.refactoring.reorg.DeleteAction.run(DeleteAction.java:197) + at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:274) + at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:252) + at org.eclipse.jface.action.Action.runWithEvent(Action.java:474) + at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:121) + at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:95) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) + at java.lang.reflect.Method.invoke(Unknown Source) + at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58) + at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:318) + at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:252) + at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:173) + at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:156) + at org.eclipse.core.commands.Command.executeWithChecks(Command.java:498) + at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:487) + at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213) + at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.executeCommand(KeyBindingDispatcher.java:308) + at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.press(KeyBindingDispatcher.java:584) + at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.processKeyEvent(KeyBindingDispatcher.java:653) + at org.eclipse.e4.ui.bindings.keys.OutOfOrderListener.handleEvent(OutOfOrderListener.java:75) + at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89) + at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4173) + at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057) + at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1081) + at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1066) + at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1108) + at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1104) + at org.eclipse.swt.widgets.Widget.wmKeyDown(Widget.java:1759) + at org.eclipse.swt.widgets.Control.WM_KEYDOWN(Control.java:5146) + at org.eclipse.swt.widgets.Tree.WM_KEYDOWN(Tree.java:6119) + at org.eclipse.swt.widgets.Control.windowProc(Control.java:4793) + at org.eclipse.swt.widgets.Tree.windowProc(Tree.java:5987) + at org.eclipse.swt.widgets.Display.windowProc(Display.java:4812) + at org.eclipse.swt.internal.win32.OS.DispatchMessage(Native Method) + at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3583) + at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1160) + at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338) + at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1049) + at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155) + at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:633) + at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338) + at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:557) + at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) + at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:150) + at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203) + at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137) + at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107) + at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400) + at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) + at java.lang.reflect.Method.invoke(Unknown Source) + at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:660) + at org.eclipse.equinox.launcher.Main.basicRun(Main.java:597) + at org.eclipse.equinox.launcher.Main.run(Main.java:1468) diff --git a/Fluig novo/.metadata/.plugins/org.eclipse.core.resources/.projects/Ginseng_chamados/.indexes/bf/0/history.index b/Fluig novo/.metadata/.plugins/org.eclipse.core.resources/.projects/Ginseng_chamados/.indexes/bf/0/history.index deleted file mode 100644 index e6e6161..0000000 Binary files a/Fluig novo/.metadata/.plugins/org.eclipse.core.resources/.projects/Ginseng_chamados/.indexes/bf/0/history.index and /dev/null differ diff --git a/Fluig novo/.metadata/.plugins/org.eclipse.core.resources/.projects/Ginseng_chamados/.indexes/properties.index b/Fluig novo/.metadata/.plugins/org.eclipse.core.resources/.projects/Ginseng_chamados/.indexes/properties.index deleted file mode 100644 index 1e099f3..0000000 Binary files a/Fluig novo/.metadata/.plugins/org.eclipse.core.resources/.projects/Ginseng_chamados/.indexes/properties.index and /dev/null differ diff --git a/Fluig novo/.metadata/.plugins/org.eclipse.core.resources/.projects/Ginseng_chamados/.location b/Fluig novo/.metadata/.plugins/org.eclipse.core.resources/.projects/Ginseng_chamados/.location deleted file mode 100644 index d38f860..0000000 Binary files a/Fluig novo/.metadata/.plugins/org.eclipse.core.resources/.projects/Ginseng_chamados/.location and /dev/null differ diff --git a/Fluig novo/.metadata/.plugins/org.eclipse.core.resources/.projects/Ginseng_chamados/.markers b/Fluig novo/.metadata/.plugins/org.eclipse.core.resources/.projects/Ginseng_chamados/.markers deleted file mode 100644 index d04bc7e..0000000 Binary files a/Fluig novo/.metadata/.plugins/org.eclipse.core.resources/.projects/Ginseng_chamados/.markers and /dev/null differ diff --git a/Fluig novo/.metadata/.plugins/org.eclipse.core.resources/.projects/Ginseng_chamados/org.eclipse.egit.core/GitProjectData.properties b/Fluig novo/.metadata/.plugins/org.eclipse.core.resources/.projects/Ginseng_chamados/org.eclipse.egit.core/GitProjectData.properties deleted file mode 100644 index 5a6aca6..0000000 --- a/Fluig novo/.metadata/.plugins/org.eclipse.core.resources/.projects/Ginseng_chamados/org.eclipse.egit.core/GitProjectData.properties +++ /dev/null @@ -1,3 +0,0 @@ -#GitProjectData -#Wed May 13 08:52:49 BRT 2026 -.gitdir=../.git diff --git a/Fluig novo/.metadata/.plugins/org.eclipse.core.resources/.projects/diagrams/.indexes/history.index b/Fluig novo/.metadata/.plugins/org.eclipse.core.resources/.projects/diagrams/.indexes/history.index deleted file mode 100644 index c5da1a5..0000000 Binary files a/Fluig novo/.metadata/.plugins/org.eclipse.core.resources/.projects/diagrams/.indexes/history.index and /dev/null differ diff --git a/Fluig novo/.metadata/.plugins/org.eclipse.core.resources/.projects/diagrams/.indexes/properties.index b/Fluig novo/.metadata/.plugins/org.eclipse.core.resources/.projects/diagrams/.indexes/properties.index deleted file mode 100644 index 1e099f3..0000000 Binary files a/Fluig novo/.metadata/.plugins/org.eclipse.core.resources/.projects/diagrams/.indexes/properties.index and /dev/null differ diff --git a/Fluig novo/.metadata/.plugins/org.eclipse.core.resources/.projects/diagrams/.location b/Fluig novo/.metadata/.plugins/org.eclipse.core.resources/.projects/diagrams/.location deleted file mode 100644 index 53b7d9d..0000000 Binary files a/Fluig novo/.metadata/.plugins/org.eclipse.core.resources/.projects/diagrams/.location and /dev/null differ diff --git a/Fluig novo/.metadata/.plugins/org.eclipse.core.resources/.projects/diagrams/.markers b/Fluig novo/.metadata/.plugins/org.eclipse.core.resources/.projects/diagrams/.markers deleted file mode 100644 index e4ce45d..0000000 Binary files a/Fluig novo/.metadata/.plugins/org.eclipse.core.resources/.projects/diagrams/.markers and /dev/null differ diff --git a/Fluig novo/.metadata/.plugins/org.eclipse.core.resources/.projects/diagrams/org.eclipse.egit.core/GitProjectData.properties b/Fluig novo/.metadata/.plugins/org.eclipse.core.resources/.projects/diagrams/org.eclipse.egit.core/GitProjectData.properties deleted file mode 100644 index 9f25e97..0000000 --- a/Fluig novo/.metadata/.plugins/org.eclipse.core.resources/.projects/diagrams/org.eclipse.egit.core/GitProjectData.properties +++ /dev/null @@ -1,3 +0,0 @@ -#GitProjectData -#Wed May 13 08:52:49 BRT 2026 -.gitdir=../../../.git diff --git a/Fluig novo/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources b/Fluig novo/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources index 44ba2aa..fa782f1 100644 Binary files a/Fluig novo/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources and b/Fluig novo/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources differ diff --git a/Fluig novo/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.egit.core.prefs b/Fluig novo/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.egit.core.prefs index 6f347c7..4d6221d 100644 --- a/Fluig novo/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.egit.core.prefs +++ b/Fluig novo/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.egit.core.prefs @@ -1,3 +1,3 @@ -GitRepositoriesView.GitDirectories=C\:\\Python\\Python\\Python\\Fluig geral\\fluig\\.git; -GitRepositoriesView.GitDirectories.relative=C\:\\Python\\Python\\Python\\Fluig geral\\fluig\\.git; +GitRepositoriesView.GitDirectories=C\:\\Users\\andrey.cunha\\eclipse-workspace.new\\.git;C\:\\Python\\Python\\Python\\Fluig geral\\fluig\\.git; +GitRepositoriesView.GitDirectories.relative=C\:\\Users\\andrey.cunha\\eclipse-workspace.new\\.git;C\:\\Python\\Python\\Python\\Fluig geral\\fluig\\.git; eclipse.preferences.version=1 diff --git a/Fluig novo/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi b/Fluig novo/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi index 0003b3d..d6ed22f 100644 --- a/Fluig novo/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi +++ b/Fluig novo/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi @@ -1,9 +1,9 @@ - - + + activeSchemeId:org.eclipse.ui.defaultAcceleratorConfiguration ModelMigrationProcessor.001 - + @@ -12,9 +12,9 @@ topLevel shellMaximized - - - + + + persp.actionSet:org.eclipse.mylyn.doc.actionSet persp.actionSet:org.eclipse.mylyn.tasks.ui.navigation @@ -74,85 +74,85 @@ persp.showIn:org.eclipse.eclemma.ui.CoverageView persp.newWizSC:org.eclipse.jpt.jpa.ui.wizard.newJpaProject persp.perspSC:org.eclipse.jpt.ui.jpaPerspective - - - + + + View categoryTag:General - + View categoryTag:General - + View categoryTag:Java - + View categoryTag:Java Browsing - - - - - + + + + + View categoryTag:General - + View categoryTag:Mylyn - + View categoryTag:General - - + + View categoryTag:General - + View categoryTag:General - + View categoryTag:Server - + View categoryTag:Data Management - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General @@ -160,7 +160,7 @@ - + persp.actionSet:org.eclipse.mylyn.doc.actionSet persp.actionSet:org.eclipse.mylyn.tasks.ui.navigation @@ -192,53 +192,55 @@ persp.newWizSC:com.fluig.wcm.eclipse.component.wizard.CreateLayoutWizardID persp.newWizSC:com.fluig.wcm.eclipse.component.wizard.CreateWidgetWizardID persp.showIn:org.eclipse.tm.terminal.view.ui.TerminalsView - - - - + + + + active + noFocus + View categoryTag:Java - + View categoryTag:General - + View categoryTag:Fluig - - + + View categoryTag:General - - - - + + + + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:Fluig - + View categoryTag:Fluig - + View categoryTag:Fluig @@ -247,1698 +249,1696 @@ - - + + View categoryTag:Help - + View categoryTag:General - + View categoryTag:Help - + View categoryTag:Help - + View categoryTag:General - + ViewMenu menuContribution:menu - + - + View categoryTag:Help - - + + org.eclipse.e4.primaryDataStack EditorStack - active - - + + Editor removeOnHide com.totvs.tds.ecm.designer.bpmneditor - - + + Editor removeOnHide - com.totvs.tds.ecm.designer.bpmneditor - active - activeOnClose + org.eclipse.wst.jsdt.ui.CompilationUnitEditor - + View categoryTag:General - + ViewMenu menuContribution:menu - + - + View categoryTag:General - + View categoryTag:Java - + View categoryTag:Java Browsing - + View categoryTag:General - + ViewMenu menuContribution:menu - + - + View categoryTag:General - + ViewMenu menuContribution:menu - + - + View categoryTag:Server - + View categoryTag:Data Management - + View categoryTag:General - + ViewMenu menuContribution:menu - + - + View categoryTag:General - + ViewMenu menuContribution:menu - + - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + ViewMenu menuContribution:menu - + - + View categoryTag:Mylyn - + View categoryTag:General - + View categoryTag:Java - + active + ViewMenu menuContribution:menu - + - + View categoryTag:Fluig - + ViewMenu menuContribution:menu - + - + View categoryTag:General - + ViewMenu menuContribution:menu - + - + View categoryTag:Fluig - + ViewMenu menuContribution:menu - + - + View categoryTag:Fluig - + View categoryTag:Fluig - - + + toolbarSeparator - + - + Draggable - + - + toolbarSeparator - + - + Draggable - + toolbarSeparator - + - + Draggable - + Draggable - + Draggable - + Draggable - + Draggable - + Draggable - + toolbarSeparator - + - + Draggable - + - + Draggable - + Draggable - + toolbarSeparator - + - + toolbarSeparator - + - + Draggable - + stretch SHOW_RESTORE_MENU - + Draggable HIDEABLE SHOW_RESTORE_MENU - - + + stretch - + Draggable - + Draggable - + Draggable - - + + TrimStack Draggable - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - + + + + + + + - - + + - - - - - - - + + + + + + + - - - - + + + + - - - + + + - - - - - + + + + + - - + + - - + + - - - + + + - - - - - - - - - - - - - - + + + + + + + + + + + + + + - - + + - - + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - - - + + + + - - - + + + - - - - - - - - - - - - - - + + + + + + + + + + + + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - + + + + + + + + + + + + + - - - + + + - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - - + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + platform:win32 - - - - - - - - - + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + - - - - - - - + + + + + + + - - - - + + + + - - + + - - - - + + + + - - - - - - - - + + + + + + + + - - + + - - - - - - + + + + + + - - - + + + - - - + + + - - - - - - + + + + + + - - - - - - - - - + + + + + + + + + - - + + - - - - + + + + - - - - + + + + - - + + - - - - + + + + - - + + - - + + platform:win32 - - + + - - + + - - - - - - - + + + + + + + - - - + + + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + - - + + - - - - - - - - - - - + + + + + + + + + + + - - - - - - + + + + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Editor removeOnHide - + View categoryTag:Ant - + View categoryTag:Gradle - + View categoryTag:Gradle - + View categoryTag:Data Management - + View categoryTag:Data Management - + View categoryTag:Data Management - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Java - + View categoryTag:Git - + View categoryTag:Git - + View categoryTag:Git - + View categoryTag:Git NoRestore - + View categoryTag:Git - + View categoryTag:General - + View categoryTag:Help - + View categoryTag:Debug - + View categoryTag:Java - + View categoryTag:Java - + View categoryTag:Java - + View categoryTag:Java Browsing - + View categoryTag:Java Browsing - + View categoryTag:Java Browsing - + View categoryTag:Java Browsing - + View categoryTag:Java - + View categoryTag:General - + View categoryTag:Java - + View categoryTag:Java - + View categoryTag:JPA - + View categoryTag:JPA - + View categoryTag:JavaServer Faces - + View categoryTag:JavaServer Faces - + View categoryTag:Web Services - + View categoryTag:Maven - + View categoryTag:Maven - + View categoryTag:Mylyn - + View categoryTag:Mylyn - + View categoryTag:Mylyn - + View categoryTag:Oomph - + View categoryTag:API Tools - + View categoryTag:Plug-in Development - + View categoryTag:Plug-in Development - + View categoryTag:Plug-in Development - + View categoryTag:Plug-in Development - + View categoryTag:Plug-in Development - + View categoryTag:Plug-in Development - + View categoryTag:Remote Systems - + View categoryTag:Remote Systems - + View categoryTag:Remote Systems - + View categoryTag:Remote Systems - + View categoryTag:Remote Systems - + View categoryTag:Remote Systems - + View categoryTag:General - + View categoryTag:General - + View categoryTag:Team - + View categoryTag:Team - + View categoryTag:Help - + View categoryTag:Terminal - + View categoryTag:Other - + View categoryTag:General - + View categoryTag:General - + View categoryTag:Help - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:Debug - + View categoryTag:JavaScript - + View categoryTag:JavaScript - + View categoryTag:JavaScript - + View categoryTag:JavaScript - + View categoryTag:JavaScript - + View categoryTag:Server - + View categoryTag:XML - + View categoryTag:XML - + View categoryTag:XML - + View categoryTag:XML - + View categoryTag:XML - + View categoryTag:Fluig - + View categoryTag:Fluig - + View categoryTag:Fluig - + View categoryTag:Fluig - + View categoryTag:Fluig - + View categoryTag:General - - + + glue move_after:PerspectiveSpacer SHOW_RESTORE_MENU - + move_after:Spacer Glue HIDEABLE SHOW_RESTORE_MENU - + glue move_after:SearchField SHOW_RESTORE_MENU - + persp.actionSet:org.eclipse.mylyn.doc.actionSet persp.actionSet:org.eclipse.mylyn.tasks.ui.navigation @@ -1970,54 +1970,54 @@ persp.newWizSC:com.fluig.wcm.eclipse.component.wizard.CreateLayoutWizardID persp.newWizSC:com.fluig.wcm.eclipse.component.wizard.CreateWidgetWizardID persp.showIn:org.eclipse.tm.terminal.view.ui.TerminalsView - - - - + + + + View categoryTag:Java - + View categoryTag:General - + View categoryTag:Fluig - - + + View categoryTag:General - - - + + + active - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:Fluig - + View categoryTag:Fluig - + View categoryTag:Fluig @@ -2025,1375 +2025,1375 @@ - - - - - + + + + + - - - - - - - - - - + + + + + + + + + + - - - - - - + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - + + + + + + + + - - - - - - - + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + - - - - - - - + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + - - - - + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - + + + + - - - + + + - - - - - - - - - - - + + + + + + + + + + + - - - - - - - - + + + + + + + + - - - - - - + + + + + + - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + - - - - + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - - - + + + + - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Fluig novo/.metadata/.plugins/org.eclipse.m2e.logback.configuration/0.log b/Fluig novo/.metadata/.plugins/org.eclipse.m2e.logback.configuration/0.log index be75f19..1653cc8 100644 --- a/Fluig novo/.metadata/.plugins/org.eclipse.m2e.logback.configuration/0.log +++ b/Fluig novo/.metadata/.plugins/org.eclipse.m2e.logback.configuration/0.log @@ -5,3 +5,4 @@ 2026-05-08 15:27:43,932 [Worker-7: Loading available Gradle versions] INFO o.e.b.c.i.u.g.PublishedGradleVersions - Gradle version information cache is out-of-date. Trying to update. 2026-05-12 08:45:43,538 [Worker-5: Loading available Gradle versions] INFO o.e.b.c.i.u.g.PublishedGradleVersions - Gradle version information cache is out-of-date. Trying to update. 2026-05-13 08:52:02,273 [Worker-4: Loading available Gradle versions] INFO o.e.b.c.i.u.g.PublishedGradleVersions - Gradle version information cache is out-of-date. Trying to update. +2026-05-15 08:38:54,281 [Worker-4: Loading available Gradle versions] INFO o.e.b.c.i.u.g.PublishedGradleVersions - Gradle version information cache is out-of-date. Trying to update. diff --git a/Fluig novo/.metadata/.plugins/org.eclipse.wst.jsdt.core/externalLibsTimeStamps b/Fluig novo/.metadata/.plugins/org.eclipse.wst.jsdt.core/externalLibsTimeStamps index b27653f..b8d4a0a 100644 Binary files a/Fluig novo/.metadata/.plugins/org.eclipse.wst.jsdt.core/externalLibsTimeStamps and b/Fluig novo/.metadata/.plugins/org.eclipse.wst.jsdt.core/externalLibsTimeStamps differ diff --git a/Fluig novo/.metadata/.plugins/org.eclipse.wst.jsdt.core/indexes/1053469344.index b/Fluig novo/.metadata/.plugins/org.eclipse.wst.jsdt.core/indexes/1053469344.index deleted file mode 100644 index 3987b1a..0000000 Binary files a/Fluig novo/.metadata/.plugins/org.eclipse.wst.jsdt.core/indexes/1053469344.index and /dev/null differ diff --git a/Fluig novo/.metadata/.plugins/org.eclipse.wst.jsdt.core/indexes/savedIndexNames.txt b/Fluig novo/.metadata/.plugins/org.eclipse.wst.jsdt.core/indexes/savedIndexNames.txt index f550b4e..312fcbf 100644 --- a/Fluig novo/.metadata/.plugins/org.eclipse.wst.jsdt.core/indexes/savedIndexNames.txt +++ b/Fluig novo/.metadata/.plugins/org.eclipse.wst.jsdt.core/indexes/savedIndexNames.txt @@ -1,6 +1,2 @@ INDEX VERSION 1.4+C:\Users\andrey.cunha\eclipse-workspace.new\Fluig novo\.metadata\.plugins\org.eclipse.wst.jsdt.core\indexes -2126945527.index -1053469344.index -3589406798.index -792921814.index -223548928.index +3974601650.index diff --git a/Fluig novo/.metadata/.plugins/org.eclipse.wst.jsdt.core/variablesAndContainers.dat b/Fluig novo/.metadata/.plugins/org.eclipse.wst.jsdt.core/variablesAndContainers.dat index c12572b..1657195 100644 Binary files a/Fluig novo/.metadata/.plugins/org.eclipse.wst.jsdt.core/variablesAndContainers.dat and b/Fluig novo/.metadata/.plugins/org.eclipse.wst.jsdt.core/variablesAndContainers.dat differ diff --git a/Fluig novo/.metadata/.plugins/org.eclipse.wst.sse.core/task-tags.properties b/Fluig novo/.metadata/.plugins/org.eclipse.wst.sse.core/task-tags.properties index 5ef0b8a..1f455f9 100644 --- a/Fluig novo/.metadata/.plugins/org.eclipse.wst.sse.core/task-tags.properties +++ b/Fluig novo/.metadata/.plugins/org.eclipse.wst.sse.core/task-tags.properties @@ -1,3 +1,3 @@ # -#Wed May 13 08:52:55 BRT 2026 -task-tag-projects-already-scanned=Ginseng_chamados,diagrams +#Fri May 15 08:40:21 BRT 2026 +task-tag-projects-already-scanned= diff --git a/Fluig novo/.metadata/.plugins/org.eclipse.wst.validation/dep.index b/Fluig novo/.metadata/.plugins/org.eclipse.wst.validation/dep.index index 5eb294c..fe9aacb 100644 Binary files a/Fluig novo/.metadata/.plugins/org.eclipse.wst.validation/dep.index and b/Fluig novo/.metadata/.plugins/org.eclipse.wst.validation/dep.index differ diff --git a/Fluig novo/.metadata/version.ini b/Fluig novo/.metadata/version.ini index a02b9c1..e267792 100644 --- a/Fluig novo/.metadata/version.ini +++ b/Fluig novo/.metadata/version.ini @@ -1,3 +1,3 @@ -#Wed May 13 08:49:56 BRT 2026 +#Fri May 15 08:37:49 BRT 2026 org.eclipse.core.runtime=2 org.eclipse.platform=4.13.0.v20190916-1045 diff --git a/Recrutamento e Seleção/datasets/ds_cargos.js b/Recrutamento e Seleção/datasets/ds_cargos.js index 9cc6562..849b04e 100644 --- a/Recrutamento e Seleção/datasets/ds_cargos.js +++ b/Recrutamento e Seleção/datasets/ds_cargos.js @@ -11,6 +11,9 @@ function createDataset(fields, constraints, sortFields) { var pagesize = 100; var page = 1; var total = null; + var termoBusca = getSearchTerm(constraints); + var limiteLinhas = getLimit(constraints, 200); + var linhasAdicionadas = 0; try { var clientService = fluigAPI.getAuthorizeClientService(); @@ -59,12 +62,18 @@ function createDataset(fields, constraints, sortFields) { if (total === null && obj.total != null) total = Number(obj.total); for (var i = 0; i < funcoes.length; i++) { - dataset.addRow([ - funcoes[i].RJ_DESC || "", - funcoes[i].RJ_CODCBO || "" // ou RJ_CBO se for o campo desejado - ]); + var descricao = String(funcoes[i].RJ_DESC || ""); + var cbo = String(funcoes[i].RJ_CODCBO || ""); + + if (matchSearch(termoBusca, descricao, cbo)) { + dataset.addRow([descricao, cbo]); + linhasAdicionadas++; + if (linhasAdicionadas >= limiteLinhas) break; + } } + if (linhasAdicionadas >= limiteLinhas) break; + // condição de parada segura if (funcoes.length < pagesize) break; @@ -76,9 +85,62 @@ function createDataset(fields, constraints, sortFields) { } catch (e) { dataset = DatasetBuilder.newDataset(); - dataset.addColumn("ERRO"); - dataset.addRow([String(e)]); + dataset.addColumn("DESCRICAO"); + dataset.addColumn("CBO"); + dataset.addRow(["ERRO AO CARREGAR FUNCOES: " + String(e), ""]); } return dataset; -} \ No newline at end of file +} + +function getSearchTerm(constraints) { + if (!constraints || constraints.length === 0) return ""; + + var searchField = ""; + var searchValue = ""; + var term = ""; + + for (var i = 0; i < constraints.length; i++) { + var c = constraints[i]; + var field = String(c.getFieldName ? c.getFieldName() : c.fieldName || "").toLowerCase(); + var value = String(c.getInitialValue ? c.getInitialValue() : c.initialValue || ""); + + if (field === "searchfield") { + searchField = String(value).toLowerCase(); + } else if (field === "searchvalue") { + searchValue = value; + } else if (field === "descricao" || field === "rj_desc" || field === "cbo" || field === "rj_codcbo") { + term = value; + } + } + + if (searchValue !== "") return searchValue; + if (searchField !== "" && term !== "") return term; + return term; +} + +function getLimit(constraints, defaultValue) { + if (!constraints || constraints.length === 0) return defaultValue; + + for (var i = 0; i < constraints.length; i++) { + var c = constraints[i]; + var field = String(c.getFieldName ? c.getFieldName() : c.fieldName || "").toLowerCase(); + var value = String(c.getInitialValue ? c.getInitialValue() : c.initialValue || ""); + + if (field === "sqllimit" || field === "limit") { + var n = parseInt(value, 10); + if (!isNaN(n) && n > 0) return n; + } + } + + return defaultValue; +} + +function matchSearch(term, descricao, cbo) { + var t = String(term || "").toLowerCase().trim(); + if (t === "") return true; + + var desc = String(descricao || "").toLowerCase(); + var cod = String(cbo || "").toLowerCase(); + return desc.indexOf(t) >= 0 || cod.indexOf(t) >= 0; +} diff --git a/Recrutamento e Seleção/forms/recrutamentoeselecao/recrutamentoeselecao.html b/Recrutamento e Seleção/forms/recrutamentoeselecao/recrutamentoeselecao.html index 355ad04..9f6d0c8 100644 --- a/Recrutamento e Seleção/forms/recrutamentoeselecao/recrutamentoeselecao.html +++ b/Recrutamento e Seleção/forms/recrutamentoeselecao/recrutamentoeselecao.html @@ -9,11 +9,6 @@ - +
+ +
+

Recrutamento e Seleção

+

Notificação de Processo

+
+ +
+

Data de início definida

+ +

Olá,

+

O colaborador ${colaboradorNome} do processo ${WKNumProces} para o cargo ${cargo} vai iniciar no dia ${dataInicio}.

+

O kit que ele vai utilizar é: ${kitUtilizado}.

+ +
+

Nº Solicitação: ${WKNumProces}

+

Colaborador: ${colaboradorNome}

+

Cargo/Função: ${cargo}

+

Data de início: ${dataInicio}

+

Kit: ${kitUtilizado}

+
+ +

Clique no botão abaixo para acessar o processo:

+
+ + Acessar Solicitação + +
+ +

+ Se o botão não abrir, copie e cole este link no navegador:
+ ${linkSolicitacao} +

+ +

+ Este é um e-mail automático, não responda. +

+
+ +
+ © Ginseng +
+
+ diff --git a/Recrutamento e Seleção/forms/recrutamentoeselecao/tpl_recrutamento_realizada_dia.html b/Recrutamento e Seleção/forms/recrutamentoeselecao/tpl_recrutamento_realizada_dia.html new file mode 100644 index 0000000..a0bf695 --- /dev/null +++ b/Recrutamento e Seleção/forms/recrutamentoeselecao/tpl_recrutamento_realizada_dia.html @@ -0,0 +1,47 @@ +
+
+ +
+

Recrutamento e Seleção

+

Notificação de Processo

+
+ +
+

Nova solicitação enviada

+ +

Olá,

+

Uma nova solicitação de recrutamento foi enviada para análise.

+ +
+

Nº Solicitação: ${WKNumProces}

+

Solicitante: ${requesterName}

+

Gestor: ${gestorNome}

+

Data: ${dataAbertura}

+

Cargo/Função: ${cargo}

+

Kit: ${kitUtilizado}

+
+ +

Clique no botão abaixo para acessar o processo:

+ + +

+ Se o botão não abrir, copie e cole este link no navegador:
+ ${linkSolicitacao} +

+ +

+ Este é um e-mail automático, não responda. +

+
+ +
+ © Ginseng +
+
+
diff --git a/Recrutamento e Seleção/workflow/.resources/Ginseng Produção.ws.cache b/Recrutamento e Seleção/workflow/.resources/Ginseng Produção.ws.cache index 26464c0..c25ea83 100644 --- a/Recrutamento e Seleção/workflow/.resources/Ginseng Produção.ws.cache +++ b/Recrutamento e Seleção/workflow/.resources/Ginseng Produção.ws.cache @@ -9,6 +9,501 @@ + + mecanismoGrupo + + + + + Tecnologia e Comunicação + + + TIC + + + + + + + Compras Indiretos + + + ComprasIndiretos + + + + + + + Obras e manutenção + + + Manutencao + + + + + + + Aprovadores Compras Nvl 3 + + + AprovadoresComprasNvl3 + + + + + + + Motoristas + + + Motoristas + + + + + + + Requisitantes de Vaga + + + Requisitantesdevaga + + + + + + + Recrutamento + + + Recrutamento + + + + + + + TODOS-TODOS-DIADMISSAO + + + TODOS-TODOS-DIADMISSAO + + + + + + + ResponsavelDesligamento + + + ResponsavelDesligamento + + + + + + + GENTE & CULTURA + + + GENTE_CULTURA + + + + + + + LOJA AL + + + LOJA_AL + + + + + + + CD + + + CD + + + + + + + ESPAÇO DO REVENDEDOR AL + + + ESPACO_DO_REVENDEDOR_AL + + + + + + + FINANCEIRO + + + FINANCEIRO + + + + + + + OPERAÇÕES + + + OPERACOES + + + + + + + AMG AL + + + AMG_AL + + + + + + + REGIONAL ALAGOAS + + + REGIONAL_ALAGOAS + + + + + + + PREVENÇÃO DE PERDA + + + PREVENCAO_DE_PERDA + + + + + + + MARKETING, TREINAMENTO + + + MARKETING_TREINAMENTO + + + + + + + SECRETARIA EXECUTIVA + + + SECRETARIA_EXECUTIVA + + + + + + + DIRETORIA EXECUTIVA + + + DIRETORIA_EXECUTIVA + + + + + + + INFRAESTRUTURA + + + INFRAESTRUTURA + + + + + + + ESPAÇO DO REVENDEDOR BA + + + ESPACO_DO_REVENDEDOR_BA + + + + + + + BUSINESS INTELLIGENCE + + + BUSINESS_INTELLIGENCE + + + + + + + DEPARTAMENTO PESSOAL + + + DEPARTAMENTO_PESSOAL + + + + + + + LOJA BA + + + LOJA_BA + + + + + + + TREINAMENTO + + + TREINAMENTO + + + + + + + AMG BA + + + AMG_BA + + + + + + + MARKETING + + + MARKETING + + + + + + + COMPRAS + + + COMPRAS + + + + + + + AMG SE + + + AMG_SE + + + + + + + LOJA SE + + + LOJA_SE + + + + + + + ESPAÇO DO REVENDEDOR SE + + + ESPACO_DO_REVENDEDOR_SE + + + + + + + VENDAS IN COMPANY + + + VENDAS_IN_COMPANY + + + + + + + REGIONAL BAHIA + + + REGIONAL_BAHIA + + + + + + + CANAL LOJA 01 + + + CANAL_LOJA_01 + + + + + + + AUDITORIA + + + AUDITORIA + + + + + + + CANAL LOJA 02 + + + CANAL_LOJA_02 + + + + + + + PLANEJAMENTO DE DEMANDAS + + + PLANEJAMENTO_DE_DEMANDAS + + + + + + + PROJETOS + + + PROJETOS + + + + + + + COMPLIANCE + + + COMPLIANCE + + + + + + + ESCRITÓRIO - MATRIZ + + + ESCRITORIO_MATRIZ + + + + + + + ESCRITÓRIO - CONQUISTA + + + ESCRITORIO_CONQUISTA + + + + + + + REGIONAL SERGIPE + + + REGIONAL_SERGIPE + + + + + + + Transferencia + + + Transferencia + + + + + + + Fiscal + + + Fiscal + + + + + + + motoristaAL + + + motoristaAL + + + + + + + motoristaBA + + + motoristaBA + + + + + + + motoristaSE + + + motoristaSE + + + + + expediente diff --git a/Recrutamento e Seleção/workflow/.resources/recrutamentoeselecao.ecm30.xml b/Recrutamento e Seleção/workflow/.resources/recrutamentoeselecao.ecm30.xml index a6e5a88..42f3a41 100644 --- a/Recrutamento e Seleção/workflow/.resources/recrutamentoeselecao.ecm30.xml +++ b/Recrutamento e Seleção/workflow/.resources/recrutamentoeselecao.ecm30.xml @@ -29,7 +29,7 @@ 1 Recrutamento e seleção - 31 + 34 823 @@ -629,7 +629,7 @@ 1 Recrutamento e seleção 1 - 31 + 34 2 hAPI.getCardValue("centroCusto") == "" @@ -643,7 +643,7 @@ 1 Recrutamento e seleção 2 - 31 + 34 2 true @@ -657,7 +657,7 @@ 1 Recrutamento e seleção 1 - 31 + 34 46 hAPI.getCardValue("validarMotivo") == "substituicao" @@ -671,7 +671,7 @@ 1 Recrutamento e seleção 2 - 31 + 34 46 hAPI.getCardValue("validarMotivo") == "temporario" @@ -685,7 +685,7 @@ 1 Recrutamento e seleção 3 - 31 + 34 46 hAPI.getCardValue("validarMotivo") == "aumento" @@ -699,7 +699,7 @@ 1 Recrutamento e seleção 1 - 31 + 34 95 hAPI.getCardValue("validacaoFunc") == "entregue" @@ -713,7 +713,7 @@ 1 Recrutamento e seleção 2 - 31 + 34 95 hAPI.getCardValue("validacaoFunc") == "naoEntregue" @@ -727,7 +727,7 @@ 1 Recrutamento e seleção 3 - 31 + 34 95 hAPI.getCardValue("validacaoFunc") == "incorreto" @@ -998,7 +998,241 @@ - + + + + 1 + beforeTaskSave + Recrutamento e seleção + 1 + + function beforeTaskSave(colleagueId, nextSequenceId, userList) { + try { + var currentState = parseInt(String(getValue("WKNumState") || "0"), 10); + var nextState = parseInt(String(nextSequenceId || "0"), 10); + var completeTask = String(getValue("WKCompletTask") || "false"); + log.info("[Recrutamento.beforeTaskSave] currentState=" + currentState + ", nextState=" + nextState + ", completeTask=" + completeTask); + + if (completeTask !== "true") return; + + // Disparo do e-mail inicial da solicitação (atividade inicial = 1). + if (currentState === 1) { + enviarNotificacaoSolicitacao(); + return; + } + + // Disparo quando a seleção define o início do colaborador. + if (currentState === 6 && nextState === 46) { + enviarNotificacaoInicioColaborador(); + } + } catch (e) { + log.error("[Recrutamento.beforeTaskSave] Erro ao disparar notificação: " + e); + } +} + +function enviarNotificacaoSolicitacao() { + var envio = montarContextoEnvio(); + if (!envio.ok) return; + + var params = new java.util.HashMap(); + params.put("WKNumProces", envio.processNumber); + params.put("linkSolicitacao", envio.processLink); + params.put("link", envio.processLink); + params.put("requesterName", valueOrDefault(hAPI.getCardValue("requesterName"))); + params.put("gestorNome", valueOrDefault(hAPI.getCardValue("gestorNome"))); + params.put("dataAbertura", valueOrDefault(hAPI.getCardValue("dataAbertura"))); + params.put("cargo", valueOrDefault(hAPI.getCardValue("funcao"))); + params.put("kitUtilizado", getKitDescricao(hAPI.getCardValue("itensinicio"))); + params.put("motivoSolicitacao", getMotivoDescricao(hAPI.getCardValue("validarMotivo"))); + params.put("justificativa", valueOrDefault(hAPI.getCardValue("justificativa"))); + + notifier.notify("admin", "tpl_recrutamento_realizada_dia", params, envio.destinatarios, "text/html"); + log.info("[Recrutamento.beforeTaskSave] tpl_recrutamento_realizada_dia enviado. processo=" + envio.processNumber + ", destinos=" + envio.destinosLog); +} + +function enviarNotificacaoInicioColaborador() { + var envio = montarContextoEnvio(); + if (!envio.ok) return; + + var dataInicio = safeTrim(hAPI.getCardValue("datainiciotrabalho")); + if (dataInicio === "") { + log.warn("[Recrutamento.beforeTaskSave] Data de início vazia. Notificação de início não enviada."); + return; + } + + var params = new java.util.HashMap(); + params.put("WKNumProces", envio.processNumber); + params.put("linkSolicitacao", envio.processLink); + params.put("link", envio.processLink); + params.put("colaboradorNome", valueOrDefault(hAPI.getCardValue("nomedocandidato"))); + params.put("cargo", valueOrDefault(hAPI.getCardValue("funcao"))); + params.put("dataInicio", formatDateBr(dataInicio)); + params.put("kitUtilizado", getKitDescricao(hAPI.getCardValue("itensinicio"))); + + notifier.notify("admin", "tpl_recrutamento_realizada", params, envio.destinatarios, "text/html"); + log.info("[Recrutamento.beforeTaskSave] tpl_recrutamento_realizada enviado. processo=" + envio.processNumber + ", destinos=" + envio.destinosLog); +} + +function montarContextoEnvio() { + var destinatarios = new java.util.ArrayList(); + var jaAdicionados = {}; + + addEmail(destinatarios, jaAdicionados, "tic@grupoginseng.com.br"); + + var requesterId = safeTrim(hAPI.getCardValue("requesterId")); + if (requesterId !== "") { + addEmail(destinatarios, jaAdicionados, resolveEmailByColleagueId(requesterId)); + } + + if (destinatarios.isEmpty()) { + log.warn("[Recrutamento.beforeTaskSave] Nenhum e-mail válido encontrado para notificação."); + return { ok: false }; + } + + var processNumber = safeTrim(getValue("WKNumProces")); + var processLink = buildProcessLink(processNumber); + + return { + ok: true, + processNumber: processNumber, + processLink: processLink, + destinatarios: destinatarios, + destinosLog: String(destinatarios.toString()) + }; +} + +function addEmail(destinatarios, jaAdicionados, email) { + var v = safeTrim(email).toLowerCase(); + if (!isValidEmail(v)) return; + if (jaAdicionados[v]) return; + + destinatarios.add(v); + jaAdicionados[v] = true; +} + +function resolveEmailByColleagueId(colleagueId) { + var id = safeTrim(colleagueId); + if (id === "") return ""; + + try { + var cActive = DatasetFactory.createConstraint("active", "true", "true", ConstraintType.MUST); + + var cId = DatasetFactory.createConstraint("colleaguePK.colleagueId", id, id, ConstraintType.MUST); + var byId = DatasetFactory.getDataset("colleague", null, [cId, cActive], null); + if (byId && byId.rowsCount > 0) { + return safeTrim(byId.getValue(0, "mail")); + } + + var cLogin = DatasetFactory.createConstraint("login", id, id, ConstraintType.MUST); + var byLogin = DatasetFactory.getDataset("colleague", null, [cLogin, cActive], null); + if (byLogin && byLogin.rowsCount > 0) { + return safeTrim(byLogin.getValue(0, "mail")); + } + } catch (e) { + log.warn("[Recrutamento.beforeTaskSave] Falha ao buscar e-mail por colleagueId: " + e); + } + + return ""; +} + +function buildProcessLink(processNumber) { + var baseUrl = safeTrim(getValue("WKServerURL")); + var companyId = safeTrim(getValue("WKCompany")); + + if (baseUrl === "" || processNumber === "") return ""; + if (baseUrl.indexOf("http://") !== 0 && baseUrl.indexOf("https://") !== 0) { + baseUrl = "https://" + baseUrl; + } + if (baseUrl.charAt(baseUrl.length - 1) === "/") { + baseUrl = baseUrl.substring(0, baseUrl.length - 1); + } + if (companyId === "") companyId = "1"; + + return baseUrl + "/portal/p/" + companyId + "/pageworkflowview?app_ecm_workflowview_detailsProcessInstanceID=" + processNumber; +} + +function getMotivoDescricao(motivo) { + var v = safeTrim(motivo).toLowerCase(); + if (v === "aumento") return "Aumento de quadro"; + if (v === "substituicao") return "Substituição"; + if (v === "temporario") return "Temporário"; + return v === "" ? "Não informado" : v; +} + +function getKitDescricao(kit) { + var v = safeTrim(kit).toLowerCase(); + if (v === "backoffice") return "Kit Backoffice (Notebook, mouse, teclado e headset)"; + if (v === "amg") return "Kit AMG (Notebook, kit mouse e teclado, headset e telefone corporativo)"; + if (v === "comercial") return "Kit Comercial (Mobshop e Mobpin)"; + return v === "" ? "Não informado" : v; +} + +function formatDateBr(value) { + var v = safeTrim(value); + if (/^\d{4}-\d{2}-\d{2}$/.test(v)) { + return v.substring(8, 10) + "/" + v.substring(5, 7) + "/" + v.substring(0, 4); + } + return v; +} + +function valueOrDefault(value) { + var v = safeTrim(value); + return v === "" ? "Não informado" : v; +} + +function isValidEmail(email) { + var v = safeTrim(email); + if (v === "") return false; + if (/\s/.test(v)) return false; + + var at = v.indexOf("@"); + if (at <= 0 || at !== v.lastIndexOf("@")) return false; + + var dot = v.lastIndexOf("."); + return dot > at + 1 && dot < (v.length - 1); +} + +function safeTrim(value) { + return String(value == null ? "" : value).trim(); +} + + + + + 1 + onNotify + Recrutamento e seleção + 1 + + function onNotify(subject, receivers, template, params) { + + log.info("===== onNotify GLOBAL ===== Template: " + template); + + var validos = new java.util.ArrayList(); + + for (var i = 0; i < receivers.size(); i++) { + + var email = receivers.get(i); + + log.info("Receiver original: [" + email + "]"); + + if (email && email.indexOf("@") > 0 && email.indexOf(".") > 0) { + validos.add(email); + } else { + log.warn("REMOVIDO EMAIL INVALIDO: [" + email + "] TEMPLATE: " + template); + } + } + + receivers.clear(); + + for (var j = 0; j < validos.size(); j++) { + receivers.add(validos.get(j)); + } + + log.info("TOTAL FINAL RECEIVERS: " + receivers.size()); +} + + @@ -1089,7 +1323,7 @@ 1 Recrutamento e seleção - 31 + 34 5 1 @@ -1100,7 +1334,7 @@ 1 Recrutamento e seleção - 31 + 34 5 2 @@ -1111,7 +1345,7 @@ 1 Recrutamento e seleção - 31 + 34 7 1 @@ -1122,7 +1356,7 @@ 1 Recrutamento e seleção - 31 + 34 110 1 @@ -1133,7 +1367,7 @@ 1 Recrutamento e seleção - 31 + 34 115 1 @@ -1144,7 +1378,7 @@ 1 Recrutamento e seleção - 31 + 34 117 1 @@ -1155,7 +1389,7 @@ 1 Recrutamento e seleção - 31 + 34 120 1 @@ -1300,7 +1534,7 @@ 0 0 Recrutamento e seleção - 31 + 34 4 approval title @@ -1310,7 +1544,7 @@ 0 0 Recrutamento e seleção - 31 + 34 4 approval highlight @@ -1320,7 +1554,7 @@ 0 0 Recrutamento e seleção - 31 + 34 4 approval approve @@ -1330,7 +1564,7 @@ 0 0 Recrutamento e seleção - 31 + 34 4 approval reject @@ -1340,7 +1574,7 @@ 0 0 Recrutamento e seleção - 31 + 34 6 approval title @@ -1350,7 +1584,7 @@ 0 0 Recrutamento e seleção - 31 + 34 6 approval highlight @@ -1360,7 +1594,7 @@ 0 0 Recrutamento e seleção - 31 + 34 6 approval reject diff --git a/Recrutamento e Seleção/workflow/.resources/recrutamentoeselecao.png b/Recrutamento e Seleção/workflow/.resources/recrutamentoeselecao.png index 39a71c4..7f7c298 100644 Binary files a/Recrutamento e Seleção/workflow/.resources/recrutamentoeselecao.png and b/Recrutamento e Seleção/workflow/.resources/recrutamentoeselecao.png differ diff --git a/Recrutamento e Seleção/workflow/.resources/recrutamentoeselecao.processimage.svg b/Recrutamento e Seleção/workflow/.resources/recrutamentoeselecao.processimage.svg index 339eab9..fff255b 100644 --- a/Recrutamento e Seleção/workflow/.resources/recrutamentoeselecao.processimage.svg +++ b/Recrutamento e Seleção/workflow/.resources/recrutamentoeselecao.processimage.svg @@ -1,2 +1,2 @@ -TILider diretoGente e culturaGestorRecrutamento e SeleçãoValidarGestorAnalisandonecessidadeSelecionandocandidatosAguardandonovocolaboradorEntregandoequipamentosValidarEquipamentosFeedback dogestorValidarinícioCorrigindomateriaisGestor IdentificadoSem GestorAprovarReprovarMaterial enviadoCancelar +TILider diretoGente e culturaGestorRecrutamento e SeleçãoValidarGestorAnalisandonecessidadeSelecionandocandidatosAguardandonovocolaboradorEntregandoequipamentosValidarEquipamentosFeedback dogestorValidarinícioCorrigindomateriaisGestor IdentificadoSem GestorAprovarReprovarMaterial enviadoCancelar diff --git a/Recrutamento e Seleção/workflow/diagrams/recrutamentoeselecao.process b/Recrutamento e Seleção/workflow/diagrams/recrutamentoeselecao.process index c205410..41c907e 100644 --- a/Recrutamento e Seleção/workflow/diagrams/recrutamentoeselecao.process +++ b/Recrutamento e Seleção/workflow/diagrams/recrutamentoeselecao.process @@ -2969,7 +2969,7 @@ - + diff --git a/Recrutamento e Seleção/workflow/scripts/recrutamentoeselecao.beforeTaskSave.js b/Recrutamento e Seleção/workflow/scripts/recrutamentoeselecao.beforeTaskSave.js new file mode 100644 index 0000000..76a1a7f --- /dev/null +++ b/Recrutamento e Seleção/workflow/scripts/recrutamentoeselecao.beforeTaskSave.js @@ -0,0 +1,189 @@ +function beforeTaskSave(colleagueId, nextSequenceId, userList) { + try { + var currentState = parseInt(String(getValue("WKNumState") || "0"), 10); + var nextState = parseInt(String(nextSequenceId || "0"), 10); + var completeTask = String(getValue("WKCompletTask") || "false"); + log.info("[Recrutamento.beforeTaskSave] currentState=" + currentState + ", nextState=" + nextState + ", completeTask=" + completeTask); + + if (completeTask !== "true") return; + + // Disparo do e-mail inicial da solicitação (atividade inicial = 1). + if (currentState === 1) { + enviarNotificacaoSolicitacao(); + return; + } + + // Disparo quando a seleção define o início do colaborador. + if (currentState === 6 && nextState === 46) { + enviarNotificacaoInicioColaborador(); + } + } catch (e) { + log.error("[Recrutamento.beforeTaskSave] Erro ao disparar notificação: " + e); + } +} + +function enviarNotificacaoSolicitacao() { + var envio = montarContextoEnvio(); + if (!envio.ok) return; + + var params = new java.util.HashMap(); + params.put("WKNumProces", envio.processNumber); + params.put("linkSolicitacao", envio.processLink); + params.put("link", envio.processLink); + params.put("requesterName", valueOrDefault(hAPI.getCardValue("requesterName"))); + params.put("gestorNome", valueOrDefault(hAPI.getCardValue("gestorNome"))); + params.put("dataAbertura", valueOrDefault(hAPI.getCardValue("dataAbertura"))); + params.put("cargo", valueOrDefault(hAPI.getCardValue("funcao"))); + params.put("kitUtilizado", getKitDescricao(hAPI.getCardValue("itensinicio"))); + params.put("motivoSolicitacao", getMotivoDescricao(hAPI.getCardValue("validarMotivo"))); + params.put("justificativa", valueOrDefault(hAPI.getCardValue("justificativa"))); + + notifier.notify("admin", "tpl_recrutamento_realizada_dia", params, envio.destinatarios, "text/html"); + log.info("[Recrutamento.beforeTaskSave] tpl_recrutamento_realizada_dia enviado. processo=" + envio.processNumber + ", destinos=" + envio.destinosLog); +} + +function enviarNotificacaoInicioColaborador() { + var envio = montarContextoEnvio(); + if (!envio.ok) return; + + var dataInicio = safeTrim(hAPI.getCardValue("datainiciotrabalho")); + if (dataInicio === "") { + log.warn("[Recrutamento.beforeTaskSave] Data de início vazia. Notificação de início não enviada."); + return; + } + + var params = new java.util.HashMap(); + params.put("WKNumProces", envio.processNumber); + params.put("linkSolicitacao", envio.processLink); + params.put("link", envio.processLink); + params.put("colaboradorNome", valueOrDefault(hAPI.getCardValue("nomedocandidato"))); + params.put("cargo", valueOrDefault(hAPI.getCardValue("funcao"))); + params.put("dataInicio", formatDateBr(dataInicio)); + params.put("kitUtilizado", getKitDescricao(hAPI.getCardValue("itensinicio"))); + + notifier.notify("admin", "tpl_recrutamento_realizada", params, envio.destinatarios, "text/html"); + log.info("[Recrutamento.beforeTaskSave] tpl_recrutamento_realizada enviado. processo=" + envio.processNumber + ", destinos=" + envio.destinosLog); +} + +function montarContextoEnvio() { + var destinatarios = new java.util.ArrayList(); + var jaAdicionados = {}; + + addEmail(destinatarios, jaAdicionados, "tic@grupoginseng.com.br"); + + var requesterId = safeTrim(hAPI.getCardValue("requesterId")); + if (requesterId !== "") { + addEmail(destinatarios, jaAdicionados, resolveEmailByColleagueId(requesterId)); + } + + if (destinatarios.isEmpty()) { + log.warn("[Recrutamento.beforeTaskSave] Nenhum e-mail válido encontrado para notificação."); + return { ok: false }; + } + + var processNumber = safeTrim(getValue("WKNumProces")); + var processLink = buildProcessLink(processNumber); + + return { + ok: true, + processNumber: processNumber, + processLink: processLink, + destinatarios: destinatarios, + destinosLog: String(destinatarios.toString()) + }; +} + +function addEmail(destinatarios, jaAdicionados, email) { + var v = safeTrim(email).toLowerCase(); + if (!isValidEmail(v)) return; + if (jaAdicionados[v]) return; + + destinatarios.add(v); + jaAdicionados[v] = true; +} + +function resolveEmailByColleagueId(colleagueId) { + var id = safeTrim(colleagueId); + if (id === "") return ""; + + try { + var cActive = DatasetFactory.createConstraint("active", "true", "true", ConstraintType.MUST); + + var cId = DatasetFactory.createConstraint("colleaguePK.colleagueId", id, id, ConstraintType.MUST); + var byId = DatasetFactory.getDataset("colleague", null, [cId, cActive], null); + if (byId && byId.rowsCount > 0) { + return safeTrim(byId.getValue(0, "mail")); + } + + var cLogin = DatasetFactory.createConstraint("login", id, id, ConstraintType.MUST); + var byLogin = DatasetFactory.getDataset("colleague", null, [cLogin, cActive], null); + if (byLogin && byLogin.rowsCount > 0) { + return safeTrim(byLogin.getValue(0, "mail")); + } + } catch (e) { + log.warn("[Recrutamento.beforeTaskSave] Falha ao buscar e-mail por colleagueId: " + e); + } + + return ""; +} + +function buildProcessLink(processNumber) { + var baseUrl = safeTrim(getValue("WKServerURL")); + var companyId = safeTrim(getValue("WKCompany")); + + if (baseUrl === "" || processNumber === "") return ""; + if (baseUrl.indexOf("http://") !== 0 && baseUrl.indexOf("https://") !== 0) { + baseUrl = "https://" + baseUrl; + } + if (baseUrl.charAt(baseUrl.length - 1) === "/") { + baseUrl = baseUrl.substring(0, baseUrl.length - 1); + } + if (companyId === "") companyId = "1"; + + return baseUrl + "/portal/p/" + companyId + "/pageworkflowview?app_ecm_workflowview_detailsProcessInstanceID=" + processNumber; +} + +function getMotivoDescricao(motivo) { + var v = safeTrim(motivo).toLowerCase(); + if (v === "aumento") return "Aumento de quadro"; + if (v === "substituicao") return "Substituição"; + if (v === "temporario") return "Temporário"; + return v === "" ? "Não informado" : v; +} + +function getKitDescricao(kit) { + var v = safeTrim(kit).toLowerCase(); + if (v === "backoffice") return "Kit Backoffice (Notebook, mouse, teclado e headset)"; + if (v === "amg") return "Kit AMG (Notebook, kit mouse e teclado, headset e telefone corporativo)"; + if (v === "comercial") return "Kit Comercial (Mobshop e Mobpin)"; + return v === "" ? "Não informado" : v; +} + +function formatDateBr(value) { + var v = safeTrim(value); + if (/^\d{4}-\d{2}-\d{2}$/.test(v)) { + return v.substring(8, 10) + "/" + v.substring(5, 7) + "/" + v.substring(0, 4); + } + return v; +} + +function valueOrDefault(value) { + var v = safeTrim(value); + return v === "" ? "Não informado" : v; +} + +function isValidEmail(email) { + var v = safeTrim(email); + if (v === "") return false; + if (/\s/.test(v)) return false; + + var at = v.indexOf("@"); + if (at <= 0 || at !== v.lastIndexOf("@")) return false; + + var dot = v.lastIndexOf("."); + return dot > at + 1 && dot < (v.length - 1); +} + +function safeTrim(value) { + return String(value == null ? "" : value).trim(); +} diff --git a/Recrutamento e Seleção/workflow/scripts/recrutamentoeselecao.onNotify.js b/Recrutamento e Seleção/workflow/scripts/recrutamentoeselecao.onNotify.js new file mode 100644 index 0000000..c6cd4a6 --- /dev/null +++ b/Recrutamento e Seleção/workflow/scripts/recrutamentoeselecao.onNotify.js @@ -0,0 +1,27 @@ +function onNotify(subject, receivers, template, params) { + + log.info("===== onNotify GLOBAL ===== Template: " + template); + + var validos = new java.util.ArrayList(); + + for (var i = 0; i < receivers.size(); i++) { + + var email = receivers.get(i); + + log.info("Receiver original: [" + email + "]"); + + if (email && email.indexOf("@") > 0 && email.indexOf(".") > 0) { + validos.add(email); + } else { + log.warn("REMOVIDO EMAIL INVALIDO: [" + email + "] TEMPLATE: " + template); + } + } + + receivers.clear(); + + for (var j = 0; j < validos.size(); j++) { + receivers.add(validos.get(j)); + } + + log.info("TOTAL FINAL RECEIVERS: " + receivers.size()); +} \ No newline at end of file