The topic "Create a Student Enrollment Period" is not available in Version 3.1.

The topic "Create a Student Enrollment Period" is not available in Version 3.0.

Create a Student Enrollment Period

This workflow creates a new student enrollment period and assigns an enrollment number to a student. The workflow uses the GetServiceInstance<IStudentEnrollmentPeriodService> activity. This service creates a new enrollment record with a proper student enrollment number. The service calls the InsertStudentEnrollment method on the iStudentEnrollmentPeriodService to insert a new enrollment record in the AdEnroll table.

Note: Do not use the SaveEntity<StudentEnrollmentEntity> activity to create a new student enrollment period record. The saved record will not have a new enrollment number in the StuNum field of the AdEnroll table.

  1. Open the workflow where you want to create an enrollment.

  2. Create the following variables. Specify default values as needed for your use case.

    Variables for StudentEnrollmentPeriodEntity workflow

  3. Drag a CreateEntity activity into the sequence.

    1. In the TEntity field, select Browse for Types....

    2. Select Cmc.Nexus.Academics.Contracts > Cmc.Nexus.Academics.Entities > StudentEnrollmentPeriodEntity and click OK.

    3. In the Result property field, specify the Enrollment variable created above.

  4. Drag an Assign activity into the sequence.

    1. In the "To" field specify studEnrollRequest (variable created above).

    2. In the "Value" field specify new EnrollStudentRequest(Enrollment).

  5. Drag a GetServiceInstance activity into the workflow.

    1. In the TService field, select Browse for Types...

    2. Select Cmc.Nexus.Academics.Services > IStudentEnrollmentPeriodService and click OK.

    3. In the Result property field, specify the iStudEnrollSvc variable created above.

  6. Insert Assign activities for each row in the following table. Assign values as needed for your environment.

    Note: Use LookupReferenceItem or other methods to find the correct values for these fields. They have been hard-coded in a test environment for example purposes only.

    Assign Properties
    To Value Value Example
    studEnrollRequest.entity.StudentId <StudentID> 20073
    studEnrollRequest.entity.SchoolStatusId <SchoolStatusId> 5
    studEnrollRequest.entity.CampusId <CampusId> 1
    studEnrollRequest.entity.ProgramId <ProgramId> 83
    studEnrollRequest.entity.ProgramVersionId <ProgramVersionId> 166
    studEnrollRequest.entity.ShiftId <ShiftId> 64
    studEnrollRequest.entity.BillingMethodId <BillingMethodId> 52
    studEnrollRequest.entity.GradeLevelId <GradeLevelId> 1
    studEnrollRequest.entity.StartDateId <StartDateId> 2998
    studEnrollRequest.entity.IpedsState <IpedsState> "GA"
    studEnrollRequest.entity.AcademicAdvisorId <AcademicAdvisorId> 115
    studEnrollRequest.entity.ApplicationReceivedDate <ApplicationReceivedDate> datetime.Today
    studEnrollRequest.entity.EnrollmentDate <EnrollmentDate> datetime.Today
    studEnrollRequest.entity.MidpointDate <MidpointDate> MidPoint (variable created above)
    studEnrollRequest.entity.GraduationDate <GraduationDate> GradDate (variable created above)
    studEnrollRequest.entity.ExpectedStartDate <ExpectedStartDate> ExpStart (variable created above)
  7. Optionally, for testing purposes, insert a WriteLine activity with Text = "Before Call".

  8. Drag an Assign activity into the sequence. This is the call to the GetServiceInstance activity using variables created above.  

    1. In the "To" field specify studEnrollResponse.

    2. In the "Value" field specify iStudEnrollSvc.InsertStudentEnrollment(studEnrollRequest).

  9. Optionally, insert another WriteLine with Text = "After Call".

  10. Optionally, insert a LogObject activity with Level = Error and Object = studEnrollResponse.

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

  12. 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.

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