TaskStateUtil - getDefaultWorkState()

Get the value for the default work state.

The default work state value is 2 if the default_work_state attribute has not been specified.

Table 1. Parameters
Name Type Description
Table 2. Returns
Type Description
Number The state value representing the working state.

var stateUtil = new TaskStateUtil(current);
//get the work state
var defaultWorkState =  stateUtil.getDefaultWorkState();
current.state = defaultWorkState;