Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

setCarRisk build failure #48

Closed
eschabell opened this issue May 6, 2013 · 3 comments
Closed

setCarRisk build failure #48

eschabell opened this issue May 6, 2013 · 3 comments

Comments

@eschabell
Copy link

Trying to setup a new BRMS demo project for the field, to look like all my other projects. I have built the zip file, used the contents and it all validates and builds fine.

If I want to edit anything, like add colors to the process, then build gives this error:

Quote:
Process Compilation error Cannot invoke toString() on the primitive type int The method setCarRisk(int) in the type Policy is not applicable for the arguments (String) The method setDriverRisk(int) in the type Policy is not applicable for the arguments (String) The method setCarRisk(int) in the type Policy is not applicable for the arguments (String) The method setDriverRisk(int) in the type Policy is not applicable for the arguments (String) Cannot invoke toString() on the primitive type int Cannot invoke toString() on the primitive type int

Investigation shows you use a carRisk variable in the process as a string, then try to set car risk in setCarRisk task but the var is an Int. Amazed it worked for you out of the box?

This is blocking for me.

@eschabell
Copy link
Author

Pull in this repository_export.zip and you will have colorized process and fixes for the mappings problem above:

https://github.com/eschabell/brms-car-insurance-demo/blob/master/support/repository_export.zip

@eschabell
Copy link
Author

#50 fixes included here.

@eschabell
Copy link
Author

Giving up. ;-)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant