private void ajaxIsFlowLocked ( final Project project , final HashMap < String , Object > ret , final HttpServletRequest req ) throws ServletException { final String flowName = getParam ( req , FLOW_NAME_PARAM ) ; final Flow flow = project . getFlow ( flowName ) ; if ( flow == null ) { ret . put ( ERROR_PARAM , "Flow " + flowName + " not found in project " + project . getName ( ) ) ; return ; } ret . put ( FLOW_ID_PARAM , flow . getId ( ) ) ; ret . put ( FLOW_IS_LOCKED_PARAM , flow . isLocked ( ) ) ; }
Returns true if the flow is locked false if it is unlocked .