Home
About
Search
Welcome to M-Files Empower – our new support experience. We'd love to hear what you think!Give feedback
Home/Support and troubleshooting/Examples and how to

Required Properties Act Differently When Using the State Transition Option for Objects in Workflows

Last updated on 3 October 2023

Admin
Metadata Card Configuration

Overview

There are multiple methods to transition an object from one workflow state to another. When using a method that is not on the metadata card, such as the state Transition option in the left-hand menu:

image.png

Details

This article applies to behaviors of Metadata Card Configuration rules.

While it is possible to use them to hide properties from the metadata card and to make properties required while filling in the metadata card, it is important to understand that these are visual settings that only apply to the human user editing the metadata card. They must never be used instead of proper permission, security, and validation settings.

M-Files will ignore any required properties that have been defined using a metadata card configuration rule when making a state transition from places other than the dropdown in the metadata card. This includes the task pane, context menu, and API as examples.

Solution

Use an appropriate validation, such as a script or app validation for complex logic that dictates whether properties are mandatory based on other values; permissions; workflow state conditions, etc.

When dealing with workflows, for example, a solution for this is to set preconditions or postconditions that require the properties in question to not be empty as needed in workflow states that require those properties.

image.png

Still need help?