In a Utility activity, the TaskStatus-Set method is specifically designed to set a status that can be tested later in the flow. Java steps are not the standard way (too complex), History-Add is for audit trails, and transitions control flow rather than status.