Allow copy the code blocks in submit rules and task scheduling

It is often necessary to create blocks of similar codes in submit rules. So, allow copy the code blocks in submit rules and task scheduling will make more efficient application development.