Class DynamicProcessDefinitionSummary

    • Constructor Detail

      • DynamicProcessDefinitionSummary

        public DynamicProcessDefinitionSummary​(org.flowable.bpmn.model.BpmnModel bpmnModel,
                                               com.fasterxml.jackson.databind.node.ObjectNode processInfo,
                                               com.fasterxml.jackson.databind.ObjectMapper objectMapper)
    • Method Detail

      • getElement

        public com.fasterxml.jackson.databind.node.ObjectNode getElement​(String elementId)
                                                                  throws IllegalStateException
        Returns the summary in the following structure:
         {
             "elementId": (the elements id)
             "elementType": (the elements type)
             "elementSummary": {
                 "DynamicBpmnConstants linked to the elementType": {
                     bpmnmodel : (array of strings | string | not provided if empty / blank / null)
                     dynamic: (array of strings or string or not provided if blank or empty)
                 }
             }
         }
         

        If no value is found for a given DynamicBpmnConstants in the BpmnModel or ProcessDefinitionInfo. we don't store an key in the resulting ObjectNode. Null values should be avoided in JSON. Depending on the ObjectMapper configuration keys with a null value could even be removed when writing to json.

        Currently supported flow elements are:
        • UserTask
        • ScriptTask
        No summary will field will be created for other elements. ElementId, and elementType will be available.
        Parameters:
        elementId - the id of the FlowElement.
        Returns:
        an ObjectNode with the provided structure.
        Throws:
        IllegalStateException - if no FlowElement is found for the provided id.
      • getSummary

        public com.fasterxml.jackson.databind.node.ObjectNode getSummary()
      • getBpmnProperties

        protected com.fasterxml.jackson.databind.node.ObjectNode getBpmnProperties​(String elementId,
                                                                                   com.fasterxml.jackson.databind.node.ObjectNode processInfoNode)