- Download the latest attached Mendix module package in
Releases
section - Import the module into your Mendix project
- Create a Java Action in Mendix
- Create Create Parameters as listed in
Usage Instructions
- Run your application
- Copy the action code into your newly created JavaAction
- Change the
package
andclass
names and to match your module and action names respectively
Parameter | Type | Description |
---|---|---|
logNode | String | Mendix Console Log Message Node |
targetObject | Object | Object to have its' attributes cleared |
clearAssociations | Boolean | Flag to empty owned associations |
clearSystemMembers | Boolean | Flag to empty System Members (createdDate , changedDate , changedBy , and owner ) |
commitObject | Boolean | Flag to commit target object afterwards ⚠ Committing a cleared object will overwrite its values in the Database |
Parameter | Type | Description |
---|---|---|
targetObject | Object | Object to have its' attributes cleared |
clearAssociations | Boolean | Flag to empty owned associations |
commitObject | Boolean | Flag to commit target object afterwards ⚠ Committing a cleared object will overwrite its values in the Database |
⚠ ClearObject is different from Rollback
behavior, as it will empty attribute values instead of undoing uncommited changes
- Use ClearObject Java Action in a Microflow
- Fill in
logNode
to customize the resulting console message - Pass the targeted object object as
targetObject
- Set
clearAssociations
,clearSystemMembers
, andcommitObject
as required
- Use ClearObject JS Action in a Nanoflow
- Log node will be the default Mendix
Client
node - Pass the targeted object object as
targetObject
- Set
clearAssociations
andcommitObject
as required
- v1.0.0 Clear Object Java Action Release
- v1.1.0 Added JS_ClearObject and modified numeric values handling in Java_ClearObject