Check if a Grade was Posted

This workflow checks if a grade was posted for a student who did not attend classes. If a grade was posted, a task is created to inform the student's advisor.

  1. Start the Workflow application from your desktop.

  2. On the Home tab, click New Event Workflow.

  3. In the Entities area:

    1. Click right arrow next to Cmc.Nexus.Contracts.

    2. Click right arrow next to Cmc.Nexus.Sis.Academics.

    3. Click Student Course (StudentCourse).

  4. In the Events area, click Saved (SavedEvent).

  5. Specify a Name for the workflow and click OK.

  6. Drag an If activity it into the sequence.

    1. In the Condition field, specify the following expression:

      entity.HasChanged("GradePostedDate")

    2. In the DisplayName property field, specify Check If a Grade Was Posted.

  7. Drag an If activity into the Then branch of the first If condition.

    1. In the Condition field, specify the following expression:

      entity.LetterGrade.Equals("TR") OR entity.LetterGrade.StartsWith("EX")

    2. In the DisplayName property field, specify Check if Letter Grade is Not Transfer or EX.

  8. Drag an If activity into the Else branch of the second If condition.

    1. In the Condition field, specify the following expression:

      entity.LastAttendanceDate.HasValue

    2. In the DisplayName property field, specify Check if no LDA.

    Check if Grade was posted - If statements 1 and 2

  9. Drag a Sequence activity into the Else branch of third If condition.

    1. In the DisplayName property field, specify Assign Activity.

  10. Drag a LookupListItem activity into the Assign Activity sequence.

    1. In the Item Type field, select Staff.

    2. In the List Item field, select an advisor.

    3. In the DisplayName property field, specify Lookup Advisor.

    4. In the Variables pane, create a variable to hold the advisor that was looked up.

    Lookup Advisor

  11. Drag a Create Task activity into the Else branch of the If condition.

    1. In the Task Type field, select Must Have.

    2. In the Task Status field, select Pending.

    3. In the Priority field, select Normal.

    4. In the Assign To field, specify advisor.Id.

    5. In the Related To field, specify entity.PersonId.

    6. In the Start Date field, specify System.DateTime.Today.

    7. In the DueTo field, specify System.DateTime.Today.AddDays(1).

    8. In the Subject field, specify "Grade Posted with No Attendance".

    Create Task Example

  12. In the Variables pane, create a variable that holds the Task instance object.

    Enter the name of the variable in the Task field of the Properties pane for the Create Task activity.

    task variable

  13. Drag a Save Task activity into the sequence below the CreateTask activity.

    Enter the name of the variable that holds the Task instance object in the Task field of the Properties pane for the Save Task activity.

  14. Check your workflow. Scroll through the workflow or use the fit to screen button located at the bottom of the Designer pane to see the whole workflow based on your screen resolution.

  15. Click Publish. The New Workflow Definition Version window is displayed.

  16. If you want the workflow to be run as soon as the event occurs on the entity, select Enable This Workflow Version, otherwise leave the check box cleared.

  17. Click Save, then Cancel to close the publisher window.