Friday, June 28, 2013

How to check whether the payload is subjected to the workflow or not?

You can use “com.adobe.granite.workflow.status.WorkflowStatus” API to check the WF status of the payload.

      Eg:

WorkflowStatus wfState = <payload object>.adaptTo(WorkflowStatus.class);

          boolean status=false;
          status = wfState.isInRunningWorkflow(true);

2 comments:

  1. Hi myself anilkumar..I'm new to cq5..
    Can you please suggest..what is the best way learn cq5...

    waiting for your reply...

    Thanks in advance....

    ReplyDelete
  2. thank you!
    Ngọc Trâm – Phiên dịch viên
    -------------------------------------------------------------------
    • Xem chi tiết về Bảng giá chụp ảnh quảng cáo
    • Hoặc Bang gia chup anh quang cao

    ReplyDelete