Soft constraints in jsprit

Hello. I am playing with jsprit constraints and I think i misunderstand something.
I have routes where i have two jobs very close to each other, and one of them is fulfilled earlier, and the other one is fulfilled on the way back. I want to prevent this. I want each job to be fulfilled ASAP.
So I added a soft activity constraint, which calculates arrival times for the task that is being inserted, and returns this as a cost, so the sooner job is fulfilled, the better cost is, but this does not work. How can I implement this properly.