Change-Id: I896917e5e0ec7099eaa66ec7c5b9948a7f024cf4
Issue-Id: VFC-463
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
# limitations under the License.
import logging
import traceback
+import os
from lcm.pub.database.models import WFPlanModel
from lcm.pub.msapi import activiti
if WFPlanModel.objects.filter():
logger.warn("Workflow is already deployed.")
return
- file_path = "TODO:"
+ base_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
+ file_path = os.path.join(base_path, "ns/data/nsinit.bpmn20.xml")
deploy_info = activiti.deploy_workflow(file_path)
WFPlanModel(
deployed_id=deploy_info["deployedId"],