GORM Mappings from Process Domain Object?

45 views
Skip to first unread message

Bobby Mantoni

unread,
Jan 12, 2013, 12:30:05 PM1/12/13
to grails-acti...@googlegroups.com
I'm testing whether I should use this plugin for a new project - so far, it's OK, but is this really not supported?

Very simple, I have a child object/mapping off the process domain object:
class MyProcessDomainObject {

MyRelatedDomainObject foo
}

I get couldn't find type for [id:1]

During the call to: ProcessInstance pi = activitiService.startProcess(params)

I've tried to ensure that only the id of the top-level object is in the params:
def p = [:]
p[sessionUsernameKey] = session[sessionUsernameKey]
p.controller = "labOrder" 
p.id = labOrderInstanceId
ProcessInstance pi = activitiService.startProcess(params)

But still get the error.

What is the recommended approach to this?

Thanks

Sakhr Talibi

unread,
Jan 14, 2013, 3:54:44 AM1/14/13
to grails-acti...@googlegroups.com
Hi Bobby,
I fixed this problem by not sending an id variable other than the object Id.
Example: in a select tag, make sure you don't have a name like this : myRelatedDomainObject.id, replace it by myRelatedDomainObjectId.
Regards
Reply all
Reply to author
Forward
0 new messages