Rimay is a domain-specific language for writing functional requirements in the financial domain. Rimay's editor is implemented using the Xtext language engineering framework.
- Java Runtime Environment
- Eclipse IDE for Java and DSL Developers (download link)
- Open Eclipse and select a workspace
- Use the Import wizard and select
General > Existing Projects into Workspace
to import the Rimay plugins (ide, ui, and dsl_rimay) - Run the file
dsl_rimay/org.xtext.dsl_rimay/src/org/xtext/Dsl_rimay.xtext
selecting the optionGenerate Xtext Artifacts
. - Select the root project
dsl_rimay/org.xtext.dsl_rimay/
and click theRun
button selectinRun as Eclipse application
- A new instance of Eclipse including Rimay's editor will be opened
- Create a file with the extension
.rimay
and you can start writing functional requirements
Actors: actor SystemA, actor SystemB, actor SystemC
Classes: class Instruction := description record
\\Requirement 1:
When SystemB receives an "email alert" from SystemA, SystemB must send an Instruction to SystemC.
\\Requirement 2:
If Instruction.description contains a "Keyword" or Instruction.record is "Live", then SystemA must create "A".
\\Requirement 3:
If the following conditions are satisfied:
- the "Instruction" has the properties described on "Section Y",
- the "Instruction" has the properties: "Owner, Status and Settlement Date" and
- the "Account Number" field contains "0000", then SystemA must send Instruction to SystemB.
\\Requirement 4:
The User must upload the "excel file" to the "SystemA".
\\Requirement 5:
The SystemA must do the following actions in sequence:
1 create an "Instruction"
2 send "Instruction" to SystemB.