Code Monkey home page Code Monkey logo

Comments (7)

jreznot avatar jreznot commented on June 9, 2024

Now IllegalArgumentException is thrown:

IllegalArgumentException: You have attempted to set a value of type class 
com.haulmont.bpm.entity.ProcInstance for parameter procInstance with expected type of class 
java.util.UUID from query string select pt from bpm$ProcTask pt left join pt.procActor pa left join 
pa.user pau where pt.procInstance.id = :procInstance and (pau.id = :userId or (pa is null and 
exists(select pt2 from bpm$ProcTask pt2 join pt2.candidateUsers cu where pt2.id = pt.id and cu.id = 
:userId))) and pt.endDate is null.

Relates to cuba-platform/cuba#744

from bpm.

haulmont-git avatar haulmont-git commented on June 9, 2024

Git changesets by artamonov:

31ed9915 in master - Unable to create or edit process instances and process definitions #38

from bpm.

natfirst avatar natfirst commented on June 9, 2024

When trying to deploy the process:

IllegalArgumentException: You have attempted to set a value of type class 
com.haulmont.bpm.entity.ProcModel for parameter model with expected type of class java.util.UUID 
from query string select pd from bpm$ProcDefinition pd where pd.model.id = :model order by pd.name, pd.deploymentDate desc.

from bpm.

natfirst avatar natfirst commented on June 9, 2024
  1. Create a process instance
  2. Select process definition
java.lang.IllegalArgumentException: You have attempted to set a value of type class 
com.haulmont.bpm.entity.ProcDefinition for parameter custom_procDefinition with expected type 
of class java.util.UUID from query string 
                
                select pr from bpm$ProcRole pr where pr.procDefinition.id = :custom_procDefinition order by pr.name
                
            .
	at org.eclipse.persistence.internal.jpa.QueryImpl.setParameterInternal(QueryImpl.java:944)
	at org.eclipse.persistence.internal.jpa.EJBQueryImpl.setParameter(EJBQueryImpl.java:609)
	at com.haulmont.cuba.core.sys.QueryImpl$Param.apply(QueryImpl.java:758)
	at com.haulmont.cuba.core.sys.QueryImpl.getQuery(QueryImpl.java:153)
	at com.haulmont.cuba.core.sys.QueryImpl.getResultList(QueryImpl.java:369)
	at com.haulmont.cuba.core.app.RdbmsStore.executeQuery(RdbmsStore.java:756)
	at com.haulmont.cuba.core.app.RdbmsStore.getResultList(RdbmsStore.java:664)
	at com.haulmont.cuba.core.app.RdbmsStore.loadList(RdbmsStore.java:225)
	at com.haulmont.cuba.core.app.DataManagerBean.loadList(DataManagerBean.java:74)
	at com.haulmont.cuba.core.app.DataServiceBean.loadList(DataServiceBean.java:54)

from bpm.

haulmont-git avatar haulmont-git commented on June 9, 2024

Git changesets by artamonov:

c901f9ba in master - Unable to create or edit process instances and process definitions #38

from bpm.

natfirst avatar natfirst commented on June 9, 2024
  1. Create a process with the role
  2. Create a process instance, assign the task to the user
  3. Try to cancel process
java.lang.IllegalArgumentException: You have attempted to set a value of type class com.haulmont.bpm.entity.ProcInstance for parameter procInstance with expected type of class java.util.UUID from query string select a from bpm$ProcTask a where a.procInstance.id = :procInstance and a.endDate is null.
	at org.eclipse.persistence.internal.jpa.QueryImpl.setParameterInternal(QueryImpl.java:944)
	at org.eclipse.persistence.internal.jpa.EJBQueryImpl.setParameter(EJBQueryImpl.java:609)
	at com.haulmont.cuba.core.sys.QueryImpl$Param.apply(QueryImpl.java:758)
	at com.haulmont.cuba.core.sys.QueryImpl.getQuery(QueryImpl.java:153)
	at com.haulmont.cuba.core.sys.QueryImpl.getResultList(QueryImpl.java:369)
	at com.haulmont.bpm.core.ProcessRuntimeManagerBean.cancelProcess(ProcessRuntimeManagerBean.java:128)
	at com.haulmont.bpm.service.ProcessRuntimeServiceBean.cancelProcess(ProcessRuntimeServiceBean.java:31)
	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:498)
	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:343)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:197)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
	at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:88)
	at com.haulmont.cuba.core.sys.ServiceInterceptor.aroundInvoke(ServiceInterceptor.java:117)
	at sun.reflect.GeneratedMethodAccessor130.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:644)
	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:633)
	at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:174)
	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
	at com.sun.proxy.$Proxy269.cancelProcess(Unknown Source)
	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:498)

from bpm.

haulmont-git avatar haulmont-git commented on June 9, 2024

Git changesets by artamonov:

85453686 in master - Unable to create or edit process instances and process definitions #38

Fix ProcessRuntimeManagerBean cancelProcess

from bpm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.