I this case the condition is set one an activity just after its been created, as it's part of an scripted process to create re-submission activities (and they need to have their own grade items).
General developer forum
Adding availability conditions to a course module
This discussion has been locked so you can no longer reply to it.