Skip to content

Commit d11418f

Browse files
authored
Release/3.11.0 (#61)
* Workflow Commons 3.11.0 * Workflow Commons 3.11.0 * Workflow Commons 3.11.0
1 parent 3e294b5 commit d11418f

19 files changed

+530
-523
lines changed

ReleaseNotes.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## Release 3.11.0
2+
3+
* We added 'Manage task assignments' page. This page provides the workflow administrator the ability to manage the assignment and targeting of user tasks based on a selected user. This is typically done when a user is leaving the organization or a group/role.
4+
* We updated Data Widgets module compatibility to v2.26.0
5+
_______
6+
17
## Release 3.10.0
28

39
* We added a constant `DueDateExpirationInDays` to configure the period in days for which the workflows/user tasks are to be considered almost due.
2.43 MB
Binary file not shown.
2.29 MB
Binary file not shown.
Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
// This file was generated by Mendix Studio Pro.
2-
//
3-
// WARNING: Only the following code will be retained when actions are regenerated:
4-
// - the import list
5-
// - the code between BEGIN USER CODE and END USER CODE
6-
// - the code between BEGIN EXTRA CODE and END EXTRA CODE
7-
// Other code you write will be lost the next time you deploy the project.
8-
import { Big } from "big.js";
9-
import "mx-global";
10-
11-
// BEGIN EXTRA CODE
12-
// END EXTRA CODE
13-
14-
/**
15-
* @param {string} targetName - Name of the widget for which filters should be reset. Valid targets are: Data grid 2, Gallery. You can find filter name in widget settings in the "Common" group (Properties>Common>Name).
16-
* @param {boolean} setToDefault - Set to default value. If true, filter will be set to its default value, otherwise it will be set to empty.
17-
* @returns {Promise.<void>}
18-
*/
19-
export async function Reset_All_Filters(targetName, setToDefault) {
20-
// BEGIN USER CODE
21-
const plugin = window["com.mendix.widgets.web.plugin.externalEvents"];
22-
if (plugin) {
23-
plugin.emit(targetName, "reset.filters", setToDefault);
24-
}
25-
// END USER CODE
26-
}
1+
// This file was generated by Mendix Studio Pro.
2+
//
3+
// WARNING: Only the following code will be retained when actions are regenerated:
4+
// - the import list
5+
// - the code between BEGIN USER CODE and END USER CODE
6+
// - the code between BEGIN EXTRA CODE and END EXTRA CODE
7+
// Other code you write will be lost the next time you deploy the project.
8+
import { Big } from "big.js";
9+
import "mx-global";
10+
11+
// BEGIN EXTRA CODE
12+
// END EXTRA CODE
13+
14+
/**
15+
* @param {string} targetName - Name of the widget for which filters should be reset. Valid targets are: Data grid 2, Gallery. You can find filter name in widget settings in the "Common" group (Properties>Common>Name).
16+
* @param {boolean} setToDefault - Set to default value. If true, filter will be set to its default value, otherwise it will be set to empty.
17+
* @returns {Promise.<void>}
18+
*/
19+
export async function Reset_All_Filters(targetName, setToDefault) {
20+
// BEGIN USER CODE
21+
const plugin = window["com.mendix.widgets.web.plugin.externalEvents"];
22+
if (plugin) {
23+
plugin.emit(targetName, "reset.filters", setToDefault);
24+
}
25+
// END USER CODE
26+
}
Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
// This file was generated by Mendix Studio Pro.
2-
//
3-
// WARNING: Only the following code will be retained when actions are regenerated:
4-
// - the import list
5-
// - the code between BEGIN USER CODE and END USER CODE
6-
// - the code between BEGIN EXTRA CODE and END EXTRA CODE
7-
// Other code you write will be lost the next time you deploy the project.
8-
import "mx-global";
9-
import { Big } from "big.js";
10-
11-
// BEGIN EXTRA CODE
12-
// END EXTRA CODE
13-
14-
/**
15-
* @param {string} targetName - Name of the filter to reset. Valid targets are: Number filter, Date filter, Text filter, Drop-down filter. You can find filter name in widget settings in the "Common" group (Properties>Common>Name).
16-
* @param {boolean} setToDefault - Set to default value. If true, filter will be set to its default value, otherwise it will be set to empty.
17-
* @returns {Promise.<void>}
18-
*/
19-
export async function Reset_Filter(targetName, setToDefault) {
20-
// BEGIN USER CODE
21-
const plugin = window["com.mendix.widgets.web.plugin.externalEvents"];
22-
if (plugin) {
23-
plugin.emit(targetName, "reset.value", setToDefault);
24-
}
25-
// END USER CODE
26-
}
1+
// This file was generated by Mendix Studio Pro.
2+
//
3+
// WARNING: Only the following code will be retained when actions are regenerated:
4+
// - the import list
5+
// - the code between BEGIN USER CODE and END USER CODE
6+
// - the code between BEGIN EXTRA CODE and END EXTRA CODE
7+
// Other code you write will be lost the next time you deploy the project.
8+
import "mx-global";
9+
import { Big } from "big.js";
10+
11+
// BEGIN EXTRA CODE
12+
// END EXTRA CODE
13+
14+
/**
15+
* @param {string} targetName - Name of the filter to reset. Valid targets are: Number filter, Date filter, Text filter, Drop-down filter. You can find filter name in widget settings in the "Common" group (Properties>Common>Name).
16+
* @param {boolean} setToDefault - Set to default value. If true, filter will be set to its default value, otherwise it will be set to empty.
17+
* @returns {Promise.<void>}
18+
*/
19+
export async function Reset_Filter(targetName, setToDefault) {
20+
// BEGIN USER CODE
21+
const plugin = window["com.mendix.widgets.web.plugin.externalEvents"];
22+
if (plugin) {
23+
plugin.emit(targetName, "reset.value", setToDefault);
24+
}
25+
// END USER CODE
26+
}
Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
1-
// This file was generated by Mendix Studio Pro.
2-
//
3-
// WARNING: Only the following code will be retained when actions are regenerated:
4-
// - the import list
5-
// - the code between BEGIN USER CODE and END USER CODE
6-
// - the code between BEGIN EXTRA CODE and END EXTRA CODE
7-
// Other code you write will be lost the next time you deploy the project.
8-
import "mx-global";
9-
import { Big } from "big.js";
10-
11-
// BEGIN EXTRA CODE
12-
// END EXTRA CODE
13-
14-
/**
15-
* @param {string} targetName - Name of the filter to set. Valid targets are: Number filter, Date filter, Text filter, Drop-down filter. You can find filter name in widget settings in the "Common" group (Properties>Common>Name).
16-
* @param {boolean} useDefaultValue - Determine the use of default value provided by the filter component itself.
17-
If true, "Value" section will be ignored
18-
* @param {"DataWidgets.Filter_Operators.contains"|"DataWidgets.Filter_Operators.startsWith"|"DataWidgets.Filter_Operators.endsWith"|"DataWidgets.Filter_Operators.between"|"DataWidgets.Filter_Operators.greater"|"DataWidgets.Filter_Operators.greaterEqual"|"DataWidgets.Filter_Operators.equal"|"DataWidgets.Filter_Operators.notEqual"|"DataWidgets.Filter_Operators.smaller"|"DataWidgets.Filter_Operators.smallerEqual"|"DataWidgets.Filter_Operators.empty"|"DataWidgets.Filter_Operators.notEmpty"} operators - Selected operators value. If filter has operators, this value will be applied.
19-
* @param {string} stringValue - Value set for dropdown filter or text filter. Choose empty if not use.
20-
* @param {Big} numberValue - Number value for number filter. Choose empty if not use.
21-
* @param {Date} dateTimeValue - Date time value for date filter, can also be use as "start date". Choose empty if not use.
22-
* @param {Date} dateTimeValue_2 - End date time value for range filter. Choose empty if not use.
23-
* @returns {Promise.<void>}
24-
*/
25-
export async function Set_Filter(targetName, useDefaultValue, operators, stringValue, numberValue, dateTimeValue, dateTimeValue_2) {
26-
// BEGIN USER CODE
27-
const plugin = window["com.mendix.widgets.web.plugin.externalEvents"];
28-
if (plugin) {
29-
plugin.emit(targetName, "set.value", useDefaultValue, {
30-
operators, stringValue, numberValue, dateTimeValue, dateTimeValue2: dateTimeValue_2
31-
});
32-
}
33-
// END USER CODE
34-
}
1+
// This file was generated by Mendix Studio Pro.
2+
//
3+
// WARNING: Only the following code will be retained when actions are regenerated:
4+
// - the import list
5+
// - the code between BEGIN USER CODE and END USER CODE
6+
// - the code between BEGIN EXTRA CODE and END EXTRA CODE
7+
// Other code you write will be lost the next time you deploy the project.
8+
import "mx-global";
9+
import { Big } from "big.js";
10+
11+
// BEGIN EXTRA CODE
12+
// END EXTRA CODE
13+
14+
/**
15+
* @param {string} targetName - Name of the filter to set. Valid targets are: Number filter, Date filter, Text filter, Drop-down filter. You can find filter name in widget settings in the "Common" group (Properties>Common>Name).
16+
* @param {boolean} useDefaultValue - Determine the use of default value provided by the filter component itself.
17+
If true, "Value" section will be ignored
18+
* @param {"DataWidgets.Filter_Operators.contains"|"DataWidgets.Filter_Operators.startsWith"|"DataWidgets.Filter_Operators.endsWith"|"DataWidgets.Filter_Operators.between"|"DataWidgets.Filter_Operators.greater"|"DataWidgets.Filter_Operators.greaterEqual"|"DataWidgets.Filter_Operators.equal"|"DataWidgets.Filter_Operators.notEqual"|"DataWidgets.Filter_Operators.smaller"|"DataWidgets.Filter_Operators.smallerEqual"|"DataWidgets.Filter_Operators.empty"|"DataWidgets.Filter_Operators.notEmpty"} operators - Selected operators value. If filter has operators, this value will be applied.
19+
* @param {string} stringValue - Value set for dropdown filter or text filter. Choose empty if not use.
20+
* @param {Big} numberValue - Number value for number filter. Choose empty if not use.
21+
* @param {Date} dateTimeValue - Date time value for date filter, can also be use as "start date". Choose empty if not use.
22+
* @param {Date} dateTimeValue_2 - End date time value for range filter. Choose empty if not use.
23+
* @returns {Promise.<void>}
24+
*/
25+
export async function Set_Filter(targetName, useDefaultValue, operators, stringValue, numberValue, dateTimeValue, dateTimeValue_2) {
26+
// BEGIN USER CODE
27+
const plugin = window["com.mendix.widgets.web.plugin.externalEvents"];
28+
if (plugin) {
29+
plugin.emit(targetName, "set.value", useDefaultValue, {
30+
operators, stringValue, numberValue, dateTimeValue, dateTimeValue2: dateTimeValue_2
31+
});
32+
}
33+
// END USER CODE
34+
}
Lines changed: 57 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,57 @@
1-
// This file was generated by Mendix Studio Pro.
2-
//
3-
// WARNING: Only the following code will be retained when actions are regenerated:
4-
// - the import list
5-
// - the code between BEGIN USER CODE and END USER CODE
6-
// - the code between BEGIN EXTRA CODE and END EXTRA CODE
7-
// Other code you write will be lost the next time you deploy the project.
8-
// Special characters, e.g., é, ö, à, etc. are supported in comments.
9-
10-
package workflowcommons.actions;
11-
12-
import com.mendix.core.Core;
13-
import com.mendix.systemwideinterfaces.core.IContext;
14-
import com.mendix.webui.CustomJavaAction;
15-
import com.mendix.systemwideinterfaces.core.IMendixObject;
16-
17-
public class JA_WorkflowUserTask_GetKey extends CustomJavaAction<java.lang.String>
18-
{
19-
/** @deprecated use workflowUserTask.getMendixObject() instead. */
20-
@java.lang.Deprecated(forRemoval = true)
21-
private final IMendixObject __workflowUserTask;
22-
private final system.proxies.WorkflowUserTask workflowUserTask;
23-
24-
public JA_WorkflowUserTask_GetKey(
25-
IContext context,
26-
IMendixObject _workflowUserTask
27-
)
28-
{
29-
super(context);
30-
this.__workflowUserTask = _workflowUserTask;
31-
this.workflowUserTask = _workflowUserTask == null ? null : system.proxies.WorkflowUserTask.initialize(getContext(), _workflowUserTask);
32-
}
33-
34-
@java.lang.Override
35-
public java.lang.String executeAction() throws Exception
36-
{
37-
// BEGIN USER CODE
38-
if (workflowUserTask == null)
39-
throw new RuntimeException("No WorkflowUserTask object provided");
40-
41-
return Core.workflows().getUserTask(getContext(), workflowUserTask.getMendixObject()).getKey();
42-
// END USER CODE
43-
}
44-
45-
/**
46-
* Returns a string representation of this action
47-
* @return a string representation of this action
48-
*/
49-
@java.lang.Override
50-
public java.lang.String toString()
51-
{
52-
return "JA_WorkflowUserTask_GetKey";
53-
}
54-
55-
// BEGIN EXTRA CODE
56-
// END EXTRA CODE
57-
}
1+
// This file was generated by Mendix Studio Pro.
2+
//
3+
// WARNING: Only the following code will be retained when actions are regenerated:
4+
// - the import list
5+
// - the code between BEGIN USER CODE and END USER CODE
6+
// - the code between BEGIN EXTRA CODE and END EXTRA CODE
7+
// Other code you write will be lost the next time you deploy the project.
8+
// Special characters, e.g., é, ö, à, etc. are supported in comments.
9+
10+
package workflowcommons.actions;
11+
12+
import com.mendix.core.Core;
13+
import com.mendix.systemwideinterfaces.core.IContext;
14+
import com.mendix.webui.CustomJavaAction;
15+
import com.mendix.systemwideinterfaces.core.IMendixObject;
16+
17+
public class JA_WorkflowUserTask_GetKey extends CustomJavaAction<java.lang.String>
18+
{
19+
/** @deprecated use workflowUserTask.getMendixObject() instead. */
20+
@java.lang.Deprecated(forRemoval = true)
21+
private final IMendixObject __workflowUserTask;
22+
private final system.proxies.WorkflowUserTask workflowUserTask;
23+
24+
public JA_WorkflowUserTask_GetKey(
25+
IContext context,
26+
IMendixObject _workflowUserTask
27+
)
28+
{
29+
super(context);
30+
this.__workflowUserTask = _workflowUserTask;
31+
this.workflowUserTask = _workflowUserTask == null ? null : system.proxies.WorkflowUserTask.initialize(getContext(), _workflowUserTask);
32+
}
33+
34+
@java.lang.Override
35+
public java.lang.String executeAction() throws Exception
36+
{
37+
// BEGIN USER CODE
38+
if (workflowUserTask == null)
39+
throw new RuntimeException("No WorkflowUserTask object provided");
40+
41+
return Core.workflows().getUserTask(getContext(), workflowUserTask.getMendixObject()).getKey();
42+
// END USER CODE
43+
}
44+
45+
/**
46+
* Returns a string representation of this action
47+
* @return a string representation of this action
48+
*/
49+
@java.lang.Override
50+
public java.lang.String toString()
51+
{
52+
return "JA_WorkflowUserTask_GetKey";
53+
}
54+
55+
// BEGIN EXTRA CODE
56+
// END EXTRA CODE
57+
}

0 commit comments

Comments
 (0)