1. A method for automatic task execution on a mobile device comprising: identifying, by a processor, one or more hardware resources on the mobile device; identifying one or more patterns for each of the one or more hardware resources, wherein each of the one or more patterns is based on a type of hardware resource; generating one or more composite patterns recognizable by the mobile device based on the one or more patterns, wherein the one or more composite patterns include at least two of the one or more patterns that are from different hardware resources; identifying one or more operations that can be performed via the mobile device; and receiving, via a user interface, an association between at least one of the one or more composite patterns and an execution of at least one of the one or more operations; wherein the one or more composite patterns further include a concurrency tolerance threshold for determining that the at least two of the one or more patterns are treated as concurrent events, wherein the concurrency tolerance threshold is a maximum time difference between the at least two of the one or more patterns.