Questions tagged [gosu]

Gosu is an imperative statically-typed object-oriented programming language for the Java Virtual Machine (JVM) that is designed to be expressive, easy-to-read, and reasonably fast. The language is rooted in concepts from Java, C#, and ECMAScript, but borrows some constructs from Ruby and dynamic languages.

Gosu:

  • is object oriented
  • is statically typed
  • is imperative
  • is 100% compatible with Java
  • features type inference
  • supports closures
  • provides simplified generics
  • is provided via the Apache License v2.0

One of the features that stands apart from other JVM languages it its "open type system". For example, there is an XSD Type Loader that will inspect XSD (XML Schema) files on the classpath and generate types for the Gosu compiler without an additional code-generation step.

For more information, go to http://gosu-lang.github.io/

117 questions
1
vote
1 answer

How create a WorkQueue Guidewire?

I need create a workqueue in guidewire, but not find guidewire documentation about this. Someone can help me please? Regards, Douglas Rezende
1
vote
4 answers

Gosu class vs enhancement

I want to know the difference between Gosu class and enhancement. Because whatever we can do in enhancement, that we can do in Gosu class also then what is the need of Gosu Enhancement.
Deepak Malav
  • 306
  • 1
  • 5
  • 13
1
vote
0 answers

What is the list of valid @SuppressWarnings warning names in Gosu?

What is the list of valid @SuppressWarnings warning names in Gosu? The bit that comes in between the ("") in @SuppressWarnings(""). There is already an SO answer for Java but I'm interested in suppressing the warning that my variable type can be…
1
vote
4 answers

Whats is systables in Guidewire?

I start PolicyCenter in Debug Mode and console show me following message: *********************************************************************** INFO Configuration.ProductModel Committing system tables file…
1
vote
2 answers

Codenarc plugin rules are not running in guidewire studio

I am currently working on Guidewire Studio built on top of IntelliJ. I have installed the codenarc plugin into the studio but it seems like the rules of codenarc is not running for my codes. After analyzing the codes it does not give me any…
pradyumn
  • 130
  • 13
1
vote
3 answers

Gosu system table query failing in Gunits

I have a Guidewire Gunit for a transformer in gosu which queries the system table to get a description for a result code which is working fine when run on the server but Gunit fails for the same. I have tried the annotation @ServerTest for Gunit but…
1
vote
1 answer

Extracting policy data into csv file

I want to take data from the the gx model and save it into csv file. There are following challenge i am facing - How to store gxmodel file into a object. after storing the object, what are the way to store it in csv file.
Arvind
  • 1,548
  • 17
  • 23
1
vote
3 answers

Getting Cannot change locked branch exception in Guidewire PC

I am trying to make a readonly entity to writable by using Transaction.runwithNewBundle(\bundle -> { entity = bundle.add(entity) }) but I am getting java.lang.IllegalArgumentException: You cannot change a locked branch. Please help me out with…
pradyumn
  • 130
  • 13
1
vote
1 answer

What is "Post on Changes" or "Reflection" functionality?

I am new to CC Guidewire. I didnt understand what post on change will do? Thanks.
Surya
  • 35
  • 2
  • 8
1
vote
1 answer

Gosu annotation for validating DOB

I'm working in gosu(guidewire) and having an annotation for the Date Of Birth(DOB).The expression under that annotation is supposed to return an error if the year of the DOB is less than 1897 or if it is greater than 2001. I'm new to gosu so can…
eureka19
  • 2,731
  • 5
  • 26
  • 34
1
vote
2 answers

How to invoke private method in Gosu

I am trying to call a private method from gosu scratchpad using invoke() method.But i am not able to access that private method. Can any one tell me the best way to invoke private methods in GOSU Language.Here is the code try{ var clazz =…
Dummy Data
  • 49
  • 1
  • 10
1
vote
3 answers

Static methods in GOSU and Thread-safety

I have below function in a .gs class, which gets called when accessing specific Claim information - public static function testVisibility(claim : Claim) : boolean { if(claim.State == ClaimState.TC_OPEN){ return true; } else{ …
0
votes
2 answers

How to filter out a value for a Array Column in an entity- Gosu?

I need to write a Gosu query to list out the records in a table. I use a compare operator to filter out multiple columns based on some criteria. I need to filter out one particular column which is of type array. Eg The table PaymentDetails has a…
shaher
  • 17
  • 3
0
votes
2 answers

Foreign Key reference integrity constraint errors

We are running a script that creates data in one of the ClaimCenter tables. This table has a foreign key reference to contacts table, that we do not use. We get an exception: org.h2.jdbc.JdbcBatchUpdateException: Referential integrity constraint…
Wen
  • 1
  • 1
0
votes
1 answer

How do you left-align the pagination buttons on the toolbar of a listview in Cloud v10?

In version 8 InsuranceSuite the pagination controls were left-aligned and always visible on the screen. With version 10 the pagination controls are now right-aligned and depending on table size they move around or you have to scroll to see them. How…
ingep
  • 187
  • 1
  • 2
  • 10