The two activities WorkZoneCase and WorkZoneCaseActivityInstance are filled with values by WorkZone when loading the case activity id.
WZ.CompleteGraph takes two parameters as input:

InstanceId is the guid pointing to the case activity found in WzpWorkflowIntances entity in WorkZone. RightNow is the time prepared for WorkZone. Obviously it should not be a hard coded string but the time. You can compute the time adding an activity with the computation value "now()".
RightNow can be computed as outlined in the example.
