skip to navigation
skip to content

Not Logged In

RMAS-OE-Adapter 0.1.3

A basic framework for building RMAS adapters

##rmas-oe-adapter##

This adapter will sit between the [RMAS communication bus] [esb], and the [OpenEthics] [oe] API.

It has one responsibility:

Poll the bus for proposal-created messages, and when one is received, create a new
OpenEthics application form using the OpenEthics API.

[esb]:https://github.com/UoK-Psychology/RMAS-ServiceBus
[oe]:https://github.com/UoK-Psychology/Openethics


This is the example message ([from the RMAS supplier documentation]http://blogs.kent.ac.uk/rmas-ee/files/2012/10/RMAS-Supplier-Documentation.pdf) that we are targetting:

```xml

<rmas>
<message-type>Proposal-created</message-type>

<cerif xmlns="urn:xmlns:org:eurocris:cerif-1.4-0" xsi:schemalocation="urn:xmlns:org:eurocris:cerif-1.4-0http://www.eurocris.org/Uploads/Web%20pages/CERIF-1.4/CERIF_1.4_0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" release="1.4" date="2012-04-12" sourcedatabase="pFact">

<cfproj>
<cfprojid>urn:rmas:0078:pfact:2.02:UUID</cfprojid>
<cfstartdate>2010-01-01</cfstartdate>
<cfenddate>2012-07-31</cfenddate>
<cfacro>RMAS</cfacro>
<cftitle cflangcode="EN" cftrans="o">Research Management and Administration System</cftitle>
<cfproj_orgunit>
<cforgunitid>orgunit-exeter-internal-id</cforgunitid>
<cfclassid>c31d3380-1cfd-11e1-8bc2-0800200c9a66</cfclassid>
<cfclassschemeid>6b2b7d25-3491-11e1-b86c-0800200c9a66</cfclassschemeid>
<cfstartdate>2010-01-01T00:00:00</cfstartdate>
<cfenddate>2012-07-31T00:00:00</cfenddate>
</cfproj_orgunit>

<cfproj_pers>
<cfpersid>pers-simon-foster-internal-id</cfpersid>
<cfclassid>b0e11470-1cfd-11e1-8bc2-0800200c9a66</cfclassid>
<cfclassschemeid>94fefd50-1d00-11e1-8bc2-0800200c9a66</cfclassschemeid>
<cfstartdate>2010-01-01T00:00:00</cfstartdate>
<cfenddate>2012-07-31T00:00:00</cfenddate>
</cfproj_pers>
</cfproj>

<cforgunit>
<cforgunitid>orgunit-exeter-internal-id</cforgunitid>
<cfname cflangcode="en_GB" cftrans="o">University of Exeter</cfname>
</cforgunit>

<cfpers>
<cfpersid>pers-simon-foster-internal-id</cfpersid>
<cfgender>m</cfgender>
<cfpersname>
<cffamilynames>Foster</cffamilynames>
<cffirstnames>Simon</cffirstnames>
</cfpersname>
</cfpers>
</cerif>
</rmas>
```

You can push this message to the ESB using the utility module: message_sender.py, but make sure that the ESB is running on localhost at port 7789 first:

```python message_sender.py```  
File Type Py Version Uploaded on Size
RMAS-OE-Adapter-0.1.3.tar.gz (md5) Source 2012-12-14 7KB
  • Downloads (All Versions):
  • 0 downloads in the last day
  • 60 downloads in the last week
  • 256 downloads in the last month