-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFirstOperation.java
More file actions
40 lines (34 loc) · 1.08 KB
/
Copy pathFirstOperation.java
File metadata and controls
40 lines (34 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package swift.pex;
import com.intersystems.enslib.pex.*;
/**
* Simple Business Operation implemented in Java.
* Request: FirstMessage
* Response: FirstMessage containing the original value in uppercase
*/
public class FirstOperation extends BusinessOperation {
/** Sample property that can be set from IRIS Management Portal */
public String CLIENTID;
/**
* OnInit: initilize Business Operation
*/
public void OnInit() throws Exception {
LOGINFO("FirstOperation:OnInit()");
LOGINFO(String.format("CLIENTID: %s", CLIENTID));
return;
}
/**
* OnTearDown: actions you want to do when stopping the Business Operation
*/
public void OnTearDown() throws Exception {
LOGINFO("FirstOperation:OnTearDown()");
return;
}
/**
* OnMessage: handle incoming request messages
*/
public Object OnMessage(Object request) throws Exception {
FirstMessage response = new FirstMessage();
response.value = ((FirstMessage) request).value.toUpperCase();
return response;
}
}