...
Code Block |
---|
//Get the Submission Feed SubmissionQuery q = new SubmissionQuery(service.getFeedURL(SubmissionFeed.class)); String ftId = "_gJZX8O62EeCXN_lW5l3omQ!_N4cF4ZuwEeCwk5wyBHqHrQ!designer"; //This is the formTypeId of our workflow. q.setFiltersetStringCustomParameter("$formTypeId eq " +ownerId", ftId); q.setOrderby("$updated"); //Order the submissions by Date SubmissionFeed sFeed = service.getFeed(q, SubmissionFeed.class); int totalLeaves = 0; //Counter for total number of leaves taken by the employee. |
...