-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathJA_WorkflowUserTask_GetKey.java
More file actions
57 lines (49 loc) · 1.85 KB
/
JA_WorkflowUserTask_GetKey.java
File metadata and controls
57 lines (49 loc) · 1.85 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// This file was generated by Mendix Studio Pro.
//
// WARNING: Only the following code will be retained when actions are regenerated:
// - the import list
// - the code between BEGIN USER CODE and END USER CODE
// - the code between BEGIN EXTRA CODE and END EXTRA CODE
// Other code you write will be lost the next time you deploy the project.
// Special characters, e.g., é, ö, à, etc. are supported in comments.
package workflowcommons.actions;
import com.mendix.core.Core;
import com.mendix.systemwideinterfaces.core.IContext;
import com.mendix.webui.CustomJavaAction;
import com.mendix.systemwideinterfaces.core.IMendixObject;
public class JA_WorkflowUserTask_GetKey extends CustomJavaAction<java.lang.String>
{
/** @deprecated use workflowUserTask.getMendixObject() instead. */
@java.lang.Deprecated(forRemoval = true)
private final IMendixObject __workflowUserTask;
private final system.proxies.WorkflowUserTask workflowUserTask;
public JA_WorkflowUserTask_GetKey(
IContext context,
IMendixObject _workflowUserTask
)
{
super(context);
this.__workflowUserTask = _workflowUserTask;
this.workflowUserTask = _workflowUserTask == null ? null : system.proxies.WorkflowUserTask.initialize(getContext(), _workflowUserTask);
}
@java.lang.Override
public java.lang.String executeAction() throws Exception
{
// BEGIN USER CODE
if (workflowUserTask == null)
throw new RuntimeException("No WorkflowUserTask object provided");
return Core.workflows().getUserTask(getContext(), workflowUserTask.getMendixObject()).getKey();
// END USER CODE
}
/**
* Returns a string representation of this action
* @return a string representation of this action
*/
@java.lang.Override
public java.lang.String toString()
{
return "JA_WorkflowUserTask_GetKey";
}
// BEGIN EXTRA CODE
// END EXTRA CODE
}