A Virginia software company has won a $2 billion trade secrets verdict against a Boston-based competitor.

Tysons-based Appian Corp. told jurors during a seven-week trial that Pegasystems Inc. had recruited a software developer who was working for government contractor Serco and used his access to confidential Appian software code to help Pegasystems conduct a corporate espionage campaign.