Read Only issue?

1
0
-1

Hi everyone!

I'm in doubt about something else on BOS (6.1.1).

I'm not sure if I'm doing something wrong or what but... when I set a field as 'read only' the information cannot be stored into an output variable. I mean I can't retrieve this information on my next form. Is that correct? Am I doing something wrong? Anyway to solve this problem?

Thanks in advance.

Comments

Submitted by JeromeT on Thu, 11/28/2013 - 22:37

Hi Rafael,

If the field is read only, it's because you don't want it to be updated.

If don't want it to be updated, no need to retreive a value (you already have it).

That been said, if you can't retrieve this info on your next form, the root cause may be elsewhere....

Jérôme

Submitted by rafael.vianna on Fri, 11/29/2013 - 11:10

Hi Jerome!

Your way of thinking is correct, BUT... I want the information to be retrieved (through a groovy script, from he Oracle database) but I just don't want the user to modify that (because it's linked to his/her login). So I need it in the next form (that will go to another lane btw) but it must appear read only on the first form. :)

Any clues about how can I do that?

Submitted by ttoine on Fri, 11/29/2013 - 14:44

I edited my answer

Submitted by rafael.vianna on Fri, 11/29/2013 - 16:58

So, just learnt something else with your game: The operators (operations, not quite sure, my Bonita is in pt-br).

Sweet. :D

4 answers

1
0
-1

So, it's just solved the problem by using those lovely operators to transport my variables. :)

I got another doubt about how to set a dependency on one of them, but it's ok, I just took another solution.

Thanks for everyone's help =)

1
0
-1

Hi Antoine!

I tried to RUN the game but...

Forget it. I just closed everything, re-opened and now works. :)

A execução falhou na publicação do processo
org.bonitasoft.engine.expression.ExpressionBuilder.validateConditionExpression(ExpressionBuilder.java:202)
org.bonitasoft.engine.expression.ExpressionBuilder.done(ExpressionBuilder.java:184)
org.bonitasoft.engine.expression.ExpressionBuilder.createComparisonExpression(ExpressionBuilder.java:386)
org.bonitasoft.studio.engine.export.EngineExpressionUtil.createComparisonExpression(EngineExpressionUtil.java:399)
org.bonitasoft.studio.engine.export.EngineExpressionUtil.buildSimpleEngineExpression(EngineExpressionUtil.java:294)
org.bonitasoft.studio.engine.export.EngineExpressionUtil.createExpression(EngineExpressionUtil.java:224)
org.bonitasoft.studio.engine.export.switcher.SequenceFlowSwitch.caseSequenceFlow(SequenceFlowSwitch.java:77)
org.bonitasoft.studio.engine.export.switcher.SequenceFlowSwitch.caseSequenceFlow(SequenceFlowSwitch.java:1)
org.bonitasoft.studio.model.process.util.ProcessSwitch.doSwitch(ProcessSwitch.java:1025)
org.eclipse.emf.ecore.util.Switch.doSwitch(Switch.java:59)
org.eclipse.emf.ecore.util.Switch.doSwitch(Switch.java:75)
org.bonitasoft.studio.engine.export.DesignProcessDefinitionBuilder.processSequenceFlows(DesignProcessDefinitionBuilder.java:169)
org.bonitasoft.studio.engine.export.DesignProcessDefinitionBuilder.createDefinition(DesignProcessDefinitionBuilder.java:131)
org.bonitasoft.studio.engine.export.BarExporter.createBusinessArchive(BarExporter.java:116)
org.bonitasoft.studio.engine.export.BarExporter.createBusinessArchive(BarExporter.java:107)
org.bonitasoft.studio.engine.export.BarExporter.createBusinessArchive(BarExporter.java:186)
org.bonitasoft.studio.engine.operation.DeployProcessOperation.deployProcess(DeployProcessOperation.java:183)
org.bonitasoft.studio.engine.operation.DeployProcessOperation.deploy(DeployProcessOperation.java:164)
org.bonitasoft.studio.engine.operation.DeployProcessOperation.run(DeployProcessOperation.java:116)
org.bonitasoft.studio.engine.command.RunProcessCommand$2.run(RunProcessCommand.java:211)
org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)


Am I missing something?

1
0
-1

Hi Antoine!

I was considering that!

Thing is: can't find any sample to use as a model. :)

Any clue?

Thanks for the help. :)

1
0
-1

Hello,

I think that if you retrieve the value of the field with a Groovy Script, you can just store it in a process variable. You can do that in the script. This way, on the next form, you just have to retrieve the variable value.

You can find an exemple of cross process variable in the latest exemple available on the blog: Bonita Escape. Look at the variable "Counter", it is the one I use to count the number of step to get at the Escape. Each time a user come on a step, the step adds 1 to "Counter". The final value is used in a message widget on the last form, and to customize the text sent be the Tweet button.
http://community.bonitasoft.com/blog/bonita-escape-game

I will put it in the Projects area of the site this afternoon, so will be able to find here too.

Notifications