Skip to content

Commit b49597d

Browse files
authored
Merge pull request #64 from mendix/release/4.0.0
Release Workflow Commons v4.0.0
2 parents 686ac3d + ce23b39 commit b49597d

File tree

231 files changed

+6926
-3610
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

231 files changed

+6926
-3610
lines changed

ReleaseNotes.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,54 @@
1+
## Release 4.0.0
2+
3+
* We upgraded the module to Mendix 11.0.0-beta.2
4+
* We introduced a new View Entity `WorkflowUserTaskView`, for unified access to user tasks regardless of whether these tasks are in progress or completed. For more information, refer to the Workflow Commons module documentation.
5+
* We removed the state change events microflows `OCh_Workflow_State` and `OCh_WorkflowUserTask_State`, since state-change events are removed in Mendix 11.
6+
* We removed the assignee and key migration microflows that were introduced in version 3.0.0 and 3.6.0 respectively and are no longer applicable. See the first note for more details.
7+
* We added migration logic to perform a one-off migration of your existing data. When using Workflow Commons and upgrading your app to Mendix 11, it is required to perform this migration and update your app accordingly. See the second note for more details.
8+
* We added an icon next to targeted/assigned users to indicate when a user is inactive, only visible for administrators.
9+
* We replaced the List View for displaying assignees with a Data Grid 2 reference set supported feature.
10+
* We fixed an issue where the overdue time was displayed incorrectly in the timeline.
11+
* We updated Atlas Core module compatibility to v3.17.0
12+
* We updated Atlas Web Content module compatibility to v3.8.0
13+
* We updated Data Widgets module compatibility to v2.31.0
14+
15+
Note: When upgrading to v4.0.0 or above, make sure that you are currently using Workflow Commons v3.6.0 or above. If you are using an earlier version, first upgrade to any version between v3.6.0 and (but not including) v4.0.0, using a Mendix 10 version. Perform the required key and/or assignee migrations for all your environments. Any required migration will be shown in the WorkflowAdminCenter page.
16+
17+
Note: As a result of upgrading to Mendix 11, the microflows and snippets that previously used the `WorkflowCommons.UserTaskView` entity have been replaced with documents that uses `WorkflowCommons.WorkflowUserTaskView` or `System.WorkflowEndedUserTask` as a parameter. If you are using one or more of them in your project, see the list below for replacement. Also, in case you have any logic based on the `WorkflowCommons.UserTaskView` entity, make sure to adapt this accordingly.
18+
19+
Microflows:
20+
* ACT_UserTaskView_ShowUserTask Page → replace with ACT_WorkflowUserTaskView_ShowUserTaskPage
21+
* ACT_UserTaskView_ShowWorkflowAdminPage → replace with ACT_WorkflowUserTaskView_ShowDefaultAdminPage
22+
* ACT_WorkflowView_ShowWorkflowAdminPage → replace with ACT_Workflow_ShowWorkflowAdminPage
23+
24+
Snippets:
25+
* Snip_UserTaskView_Assignees → replace with Snip_WorkflowUserTaskView_Assignees
26+
* Snip_UserTaskView_Assignees_Aggregated → replace with Snip_WorkflowUserTaskView_Assignees
27+
* Snip_UserTaskView_Details → replace with Snip_WorkflowUserTaskView_Details
28+
* Snip_UserTaskView_Header → replace with Snip_UserTask_Header or Snip_WorfkflowEndedUserTask_Header
29+
* Snip_UserTaskView_IncompatibleWarning → replace with Snip_WorkflowUserTaskView_IncompatibleWarning
30+
* Snip_UserTaskView_NameColumn → replace with Snip_WorkflowUserTaskView_NameColumn
31+
* Snip_UserTaskView_NameColumnWithIcon → replace with Snip_WorkflowUserTaskView_NameColumnWithIcon
32+
* Snip_UserTaskView_State → replace with Snip_WorkflowUserTaskView_State
33+
* Snip_UserTaskView_TargetUsers → replace with Snip_UserTask_TargetUsers or Snip_WorkflowEndedUserTask_TargetUsers
34+
* Snip_WorkflowView_ActivityTimeline → replace with Snip_Workflow_ActivityTimeline
35+
* Snip_WorkflowView_ActivityTimelineOnly_Full → replace with Snip_Workflow_ActivityTimelineOnly_Full
36+
* Snip_WorkflowView_ActivityTimelineOnly_Tasks → replace with Snip_Workflow_ActivityTimelineOnly_Tasks
37+
* Snip_WorkflowView_AuditTrail → replace with Snip_Workflow_AuditTrail
38+
* Snip_WorkflowView_CommentsAndAttachments → replace with Snip_Workflow_CommentsAndAttachments
39+
* Snip_WorkflowView_CommentsAndAttachments_Admin → replace with Snip_Workflow_CommentsAndAttachments_Admin
40+
* Snip_WorkflowView_CompletedTaskDetails → replace with Snip_Workflow_TaskDetails
41+
* Snip_WorkflowView_Detail → replace with Snip_Workflow_Detail
42+
* Snip_WorkflowView_Header → replace with Snip_Workflow_Header
43+
* Snip_WorkflowView_NotificationArea → replace with Snip_Workflow_NotificationArea
44+
* Snip_WorkflowView_State → replace with Snip_Workflow_State
45+
* Snip_WorkflowView_StateCircleOnly → replace with Snip_Workflow_StateCircleOnly
46+
* Snip_WorkflowView_TaskTimeline → replace with Snip_Workflow_TaskTimeline
47+
* Snip_WorkflowView_TaskTimeline_WithoutNameandDescription → replace with Snip_Workflow_TaskTimeline_WithoutName
48+
* Snip_WorkflowView_TaskTimelineOnly → replace with Snip_Workflow_TaskTimelineOnly
49+
50+
_______
51+
152
## Release 3.12.1
253

354
* We changed the length of the `Reason` attribute in the `WorkflowAuditTrailRecord` entity to unlimited.

Releases/WorkflowCommons-4-0-0.mpk

2.47 MB
Binary file not shown.
-32 MB
Binary file not shown.

Source/javascriptsource/datawidgets/actions/Set_Filter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { Big } from "big.js";
1515
* @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).
1616
* @param {boolean} useDefaultValue - Determine the use of default value provided by the filter component itself.
1717
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.
18+
* @param {undefined|"contains"|"startsWith"|"endsWith"|"between"|"greater"|"greaterEqual"|"equal"|"notEqual"|"smaller"|"smallerEqual"|"empty"|"notEmpty"} operators - Selected operators value. If filter has operators, this value will be applied.
1919
* @param {string} stringValue - Value set for dropdown filter or text filter. Choose empty if not use.
2020
* @param {Big} numberValue - Number value for number filter. Choose empty if not use.
2121
* @param {Date} dateTimeValue - Date time value for date filter, can also be use as "start date". Choose empty if not use.

Source/javascriptsource/datawidgets/actions/xlsx-export-tools.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Source/javascriptsource/nanoflowcommons/actions/Geocode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import Geodecoder from 'react-native-geocoder';
1414
/**
1515
* Geocoding is the process of converting addresses (like a street address) into geographic coordinates (latitude and longitude), which you can use to place markers on a map, or position the map.
1616
* @param {string} address - This field is required.
17-
* @param {"NanoflowCommons.GeocodingProvider.Google"|"NanoflowCommons.GeocodingProvider.Geocodio"|"NanoflowCommons.GeocodingProvider.LocationIQ"|"NanoflowCommons.GeocodingProvider.MapQuest"} geocodingProvider - This field is required for use on web.
17+
* @param {undefined|"Google"|"Geocodio"|"LocationIQ"|"MapQuest"} geocodingProvider - This field is required for use on web.
1818
* @param {string} providerApiKey - This field is required for use on web. Note that the keys are accessible by the end users and should be protected in other ways; for example restricted domain name.
1919
* @returns {Promise.<MxObject>}
2020
*/

Source/javascriptsource/nanoflowcommons/actions/GetPlatform.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { Big } from "big.js";
1212

1313
/**
1414
* Get the client platform (NanoflowCommons.Platform) where the action is running.
15-
* @returns {Promise.<"NanoflowCommons.Platform.Web"|"NanoflowCommons.Platform.Native_mobile"|"NanoflowCommons.Platform.Hybrid_mobile">}
15+
* @returns {Promise.<undefined|"Web"|"Native_mobile"|"Hybrid_mobile">}
1616
*/
1717
export async function GetPlatform() {
1818
// BEGIN USER CODE

Source/javascriptsource/nanoflowcommons/actions/GetStraightLineDistance.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function kmToNauticalMile(km) {
2424
* @param {Big} longitudePoint1
2525
* @param {Big} latitudePoint2
2626
* @param {Big} longitudePoint2
27-
* @param {"NanoflowCommons.Enum_DistanceUnit.KILOMETER"|"NanoflowCommons.Enum_DistanceUnit.STATUTE_MILE"|"NanoflowCommons.Enum_DistanceUnit.NAUTICAL_MILE"} unit
27+
* @param {undefined|"KILOMETER"|"STATUTE_MILE"|"NAUTICAL_MILE"} unit
2828
* @returns {Promise.<Big>}
2929
*/
3030
export async function GetStraightLineDistance(latitudePoint1, longitudePoint1, latitudePoint2, longitudePoint2, unit) {

Source/javascriptsource/nanoflowcommons/actions/ReverseGeocode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import Geodecoder from 'react-native-geocoder';
1515
* Reverse geocoding is the process of converting geographic coordinates (latitude and longitude) into a human-readable address.
1616
* @param {string} latitude - This field is required.
1717
* @param {string} longitude - This field is required.
18-
* @param {"NanoflowCommons.GeocodingProvider.Google"|"NanoflowCommons.GeocodingProvider.Geocodio"|"NanoflowCommons.GeocodingProvider.LocationIQ"|"NanoflowCommons.GeocodingProvider.MapQuest"} geocodingProvider - This field is required for use on web.
18+
* @param {undefined|"Google"|"Geocodio"|"LocationIQ"|"MapQuest"} geocodingProvider - This field is required for use on web.
1919
* @param {string} providerApiKey - This field is required for use on web. Note that the keys are accessible by the end users and should be protected in other ways; for example restricted domain name.
2020
* @returns {Promise.<string>}
2121
*/
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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} text
16+
* @returns {Promise.<void>}
17+
*/
18+
export async function JS_CopyToClipboard(text) {
19+
// BEGIN USER CODE
20+
navigator.clipboard.writeText(text);
21+
// END USER CODE
22+
}

0 commit comments

Comments
 (0)